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

Side by Side Diff: webkit/child/weburlloader_impl.h

Issue 185553014: Revert "Revert 254514 "Revert 254507 "Reland "Move WebKitPlatformSupport..."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/child/websocketstreamhandle_impl.cc ('k') | webkit/child/weburlloader_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ 5 #ifndef WEBKIT_CHILD_WEBURLLOADER_IMPL_H_
6 #define CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ 6 #define WEBKIT_CHILD_WEBURLLOADER_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h"
10 #include "third_party/WebKit/public/platform/WebURLLoader.h" 9 #include "third_party/WebKit/public/platform/WebURLLoader.h"
10 #include "webkit/child/webkit_child_export.h"
11 11
12 namespace webkit_glue { 12 namespace webkit_glue {
13
14 class WebKitPlatformSupportImpl;
13 struct ResourceResponseInfo; 15 struct ResourceResponseInfo;
14 }
15
16 namespace content {
17
18 class BlinkPlatformImpl;
19 16
20 class WebURLLoaderImpl : public blink::WebURLLoader { 17 class WebURLLoaderImpl : public blink::WebURLLoader {
21 public: 18 public:
22 explicit WebURLLoaderImpl(BlinkPlatformImpl* platform); 19 explicit WebURLLoaderImpl(WebKitPlatformSupportImpl* platform);
23 virtual ~WebURLLoaderImpl(); 20 virtual ~WebURLLoaderImpl();
24 21
25 static blink::WebURLError CreateError(const blink::WebURL& unreachable_url, 22 static blink::WebURLError CreateError(const blink::WebURL& unreachable_url,
26 bool stale_copy_in_cache, 23 bool stale_copy_in_cache,
27 int reason); 24 int reason);
28 CONTENT_EXPORT static void PopulateURLResponse( 25 WEBKIT_CHILD_EXPORT static void PopulateURLResponse(
29 const GURL& url, 26 const GURL& url,
30 const webkit_glue::ResourceResponseInfo& info, 27 const ResourceResponseInfo& info,
31 blink::WebURLResponse* response); 28 blink::WebURLResponse* response);
32 29
33 // WebURLLoader methods: 30 // WebURLLoader methods:
34 virtual void loadSynchronously( 31 virtual void loadSynchronously(
35 const blink::WebURLRequest& request, 32 const blink::WebURLRequest& request,
36 blink::WebURLResponse& response, 33 blink::WebURLResponse& response,
37 blink::WebURLError& error, 34 blink::WebURLError& error,
38 blink::WebData& data); 35 blink::WebData& data);
39 virtual void loadAsynchronously( 36 virtual void loadAsynchronously(
40 const blink::WebURLRequest& request, 37 const blink::WebURLRequest& request,
41 blink::WebURLLoaderClient* client); 38 blink::WebURLLoaderClient* client);
42 virtual void cancel(); 39 virtual void cancel();
43 virtual void setDefersLoading(bool value); 40 virtual void setDefersLoading(bool value);
44 virtual void didChangePriority(blink::WebURLRequest::Priority new_priority); 41 virtual void didChangePriority(blink::WebURLRequest::Priority new_priority);
45 42
46 private: 43 private:
47 class Context; 44 class Context;
48 scoped_refptr<Context> context_; 45 scoped_refptr<Context> context_;
49 BlinkPlatformImpl* platform_; 46 WebKitPlatformSupportImpl* platform_;
50 }; 47 };
51 48
52 } // namespace content 49 } // namespace webkit_glue
53 50
54 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ 51 #endif // WEBKIT_CHILD_WEBURLLOADER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/child/websocketstreamhandle_impl.cc ('k') | webkit/child/weburlloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698