Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: Source/core/platform/network/ResourceHandle.h

Issue 16140020: Delete NetworkingContext and its subclasses. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/network/ResourceHandle.h
diff --git a/Source/core/platform/network/ResourceHandle.h b/Source/core/platform/network/ResourceHandle.h
index c7d36161a049b8765f452a27092fc6a975cb42e0..de6cd480a5b0fde59b44f29cac4e4c0decac3e79 100644
--- a/Source/core/platform/network/ResourceHandle.h
+++ b/Source/core/platform/network/ResourceHandle.h
@@ -35,7 +35,6 @@
namespace WebCore {
class KURL;
-class NetworkingContext;
class ResourceError;
class ResourceHandleClient;
class ResourceHandleInternal;
@@ -46,8 +45,8 @@ template <typename T> class Timer;
class ResourceHandle : public RefCounted<ResourceHandle> {
public:
- static PassRefPtr<ResourceHandle> create(NetworkingContext*, const ResourceRequest&, ResourceHandleClient*, bool defersLoading, bool shouldContentSniff, StoredCredentials);
- static void loadResourceSynchronously(NetworkingContext*, const ResourceRequest&, StoredCredentials, ResourceError&, ResourceResponse&, Vector<char>& data);
+ static PassRefPtr<ResourceHandle> create(const ResourceRequest&, ResourceHandleClient*, bool defersLoading, bool shouldContentSniff, StoredCredentials);
+ static void loadResourceSynchronously(const ResourceRequest&, StoredCredentials, ResourceError&, ResourceResponse&, Vector<char>& data);
static void cacheMetadata(const ResourceResponse&, const Vector<char>&);
@@ -65,19 +64,17 @@ public:
ResourceRequest& firstRequest();
- NetworkingContext* context() const;
-
typedef PassRefPtr<ResourceHandle> (*BuiltinConstructor)(const ResourceRequest& request, ResourceHandleClient* client);
static void registerBuiltinConstructor(const AtomicString& protocol, BuiltinConstructor);
- typedef void (*BuiltinSynchronousLoader)(NetworkingContext*, const ResourceRequest&, StoredCredentials, ResourceError&, ResourceResponse&, Vector<char>& data);
+ typedef void (*BuiltinSynchronousLoader)(const ResourceRequest&, StoredCredentials, ResourceError&, ResourceResponse&, Vector<char>& data);
static void registerBuiltinSynchronousLoader(const AtomicString& protocol, BuiltinSynchronousLoader);
protected:
- ResourceHandle(NetworkingContext*, const ResourceRequest&, ResourceHandleClient*, bool defersLoading, bool shouldContentSniff);
+ ResourceHandle(const ResourceRequest&, ResourceHandleClient*, bool defersLoading, bool shouldContentSniff);
private:
- bool start(StoredCredentials);
+ void start(StoredCredentials);
friend class ResourceHandleInternal;
OwnPtr<ResourceHandleInternal> d;
};

Powered by Google App Engine
This is Rietveld 408576698