summaryrefslogtreecommitdiffstats
path: root/content/child/web_url_loader_impl.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-03 00:14:14 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-03 00:14:14 +0000
commitb875d9be06f419624cebf5381dc5caebfa69fe08 (patch)
tree3f2fbc4295091f1bc43fd4c2510e8cc0a6dc9d98 /content/child/web_url_loader_impl.h
parentb48ab6f0c08d95ca61957b967147c6ac9df6fee4 (diff)
downloadchromium_src-b875d9be06f419624cebf5381dc5caebfa69fe08.zip
chromium_src-b875d9be06f419624cebf5381dc5caebfa69fe08.tar.gz
chromium_src-b875d9be06f419624cebf5381dc5caebfa69fe08.tar.bz2
Move WebKitPlatformSupportImpl over to content.
In the process rename it BlinkPlatformImpl to avoid conflicts and confusion with an existing WebKitPlatformSupportImpl class in content. This step is necessary because WebKitPlatformSupportImpl uses webkit/common/user_agent/, and we also want to move user_agent to content. So this needs to happen first because webkit can't depend on content as content already depends on webkit, otherwise we would be creating a circular dependency. WebURLLoader and WebSocketStreamHandleImpl had to be moved with WebKitPlatformSupportImpl, because they both uses WebKitPlatformSupportImpl and vice-versa. BUG=265753,338338,237249 TEST=content_unittests R=jam@chromium.org TBR=darin Review URL: https://codereview.chromium.org/184683002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254425 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/child/web_url_loader_impl.h')
-rw-r--r--content/child/web_url_loader_impl.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/content/child/web_url_loader_impl.h b/content/child/web_url_loader_impl.h
new file mode 100644
index 0000000..7b31358
--- /dev/null
+++ b/content/child/web_url_loader_impl.h
@@ -0,0 +1,54 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_
+#define CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_
+
+#include "base/memory/ref_counted.h"
+#include "content/common/content_export.h"
+#include "third_party/WebKit/public/platform/WebURLLoader.h"
+
+namespace webkit_glue {
+struct ResourceResponseInfo;
+}
+
+namespace content {
+
+class BlinkPlatformImpl;
+
+class WebURLLoaderImpl : public blink::WebURLLoader {
+ public:
+ explicit WebURLLoaderImpl(BlinkPlatformImpl* platform);
+ virtual ~WebURLLoaderImpl();
+
+ static blink::WebURLError CreateError(const blink::WebURL& unreachable_url,
+ bool stale_copy_in_cache,
+ int reason);
+ CONTENT_EXPORT static void PopulateURLResponse(
+ const GURL& url,
+ const webkit_glue::ResourceResponseInfo& info,
+ blink::WebURLResponse* response);
+
+ // WebURLLoader methods:
+ virtual void loadSynchronously(
+ const blink::WebURLRequest& request,
+ blink::WebURLResponse& response,
+ blink::WebURLError& error,
+ blink::WebData& data);
+ virtual void loadAsynchronously(
+ const blink::WebURLRequest& request,
+ blink::WebURLLoaderClient* client);
+ virtual void cancel();
+ virtual void setDefersLoading(bool value);
+ virtual void didChangePriority(blink::WebURLRequest::Priority new_priority);
+
+ private:
+ class Context;
+ scoped_refptr<Context> context_;
+ BlinkPlatformImpl* platform_;
+};
+
+} // namespace content
+
+#endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_