1/*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2008 Xan Lopez <xan@gnome.org>
5 * Copyright (C) 2008, 2010 Collabora Ltd.
6 * Copyright (C) 2009 Holger Hans Peter Freyther
7 * Copyright (C) 2009, 2013 Gustavo Noronha Silva <gns@gnome.org>
8 * Copyright (C) 2009 Christian Dywan <christian@imendio.com>
9 * Copyright (C) 2009, 2010, 2011, 2012 Igalia S.L.
10 * Copyright (C) 2009 John Kjellberg <john.kjellberg@power.alstom.com>
11 * Copyright (C) 2012 Intel Corporation
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Library General Public
15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Library General Public License for more details.
22 *
23 * You should have received a copy of the GNU Library General Public License
24 * along with this library; see the file COPYING.LIB. If not, write to
25 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
26 * Boston, MA 02110-1301, USA.
27 */
28
29#include "config.h"
30#include "ResourceHandle.h"
31
32#if USE(SOUP)
33
34#include "CredentialStorage.h"
35#include "GUniquePtrSoup.h"
36#include "HTTPParsers.h"
37#include "LocalizedStrings.h"
38#include "MIMETypeRegistry.h"
39#include "NetworkStorageSession.h"
40#include "NetworkingContext.h"
41#include "ResourceError.h"
42#include "ResourceHandleClient.h"
43#include "ResourceHandleInternal.h"
44#include "ResourceResponse.h"
45#include "SharedBuffer.h"
46#include "SoupNetworkSession.h"
47#include "TextEncoding.h"
48#include <errno.h>
49#include <fcntl.h>
50#include <gio/gio.h>
51#include <glib.h>
52#include <libsoup/soup.h>
53#include <sys/stat.h>
54#include <sys/types.h>
55#if !COMPILER(MSVC)
56#include <unistd.h>
57#endif
58#include <wtf/CompletionHandler.h>
59#include <wtf/FileSystem.h>
60#include <wtf/glib/GRefPtr.h>
61#include <wtf/glib/RunLoopSourcePriority.h>
62#include <wtf/text/CString.h>
63
64namespace WebCore {
65
66ResourceHandleInternal::~ResourceHandleInternal() = default;
67
68ResourceHandle::~ResourceHandle()
69{
70 ASSERT_NOT_REACHED();
71}
72
73void ResourceHandle::platformContinueSynchronousDidReceiveResponse()
74{
75 ASSERT_NOT_REACHED();
76}
77
78bool ResourceHandle::start()
79{
80 ASSERT_NOT_REACHED();
81 return false;
82}
83
84void ResourceHandle::cancel()
85{
86 ASSERT_NOT_REACHED();
87}
88
89bool ResourceHandle::shouldUseCredentialStorage()
90{
91 ASSERT_NOT_REACHED();
92 return false;
93}
94
95void ResourceHandle::didReceiveAuthenticationChallenge(const AuthenticationChallenge&)
96{
97 ASSERT_NOT_REACHED();
98}
99
100void ResourceHandle::receivedRequestToContinueWithoutCredential(const AuthenticationChallenge&)
101{
102 ASSERT_NOT_REACHED();
103}
104
105void ResourceHandle::receivedCredential(const AuthenticationChallenge&, const Credential&)
106{
107 ASSERT_NOT_REACHED();
108}
109
110void ResourceHandle::receivedCancellation(const AuthenticationChallenge&)
111{
112 ASSERT_NOT_REACHED();
113}
114
115void ResourceHandle::receivedRequestToPerformDefaultHandling(const AuthenticationChallenge&)
116{
117 ASSERT_NOT_REACHED();
118}
119
120void ResourceHandle::receivedChallengeRejection(const AuthenticationChallenge&)
121{
122 ASSERT_NOT_REACHED();
123}
124
125void ResourceHandle::platformSetDefersLoading(bool)
126{
127 ASSERT_NOT_REACHED();
128}
129
130void ResourceHandle::platformLoadResourceSynchronously(NetworkingContext*, const ResourceRequest&, StoredCredentialsPolicy, ResourceError&, ResourceResponse&, Vector<char>&)
131{
132 ASSERT_NOT_REACHED();
133}
134
135}
136
137#endif
138