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

Side by Side Diff: content/child/resource_dispatcher.h

Issue 519333002: Move resource_loader_bridge.* from webkit/child to content/child. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add files to content_child.gypi Created 6 years, 3 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
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.cc ('k') | content/child/resource_dispatcher.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #ifndef CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 7 #ifndef CONTENT_CHILD_RESOURCE_DISPATCHER_H_
8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_
9 9
10 #include <deque> 10 #include <deque>
(...skipping 14 matching lines...) Expand all
25 struct ResourceMsg_RequestCompleteData; 25 struct ResourceMsg_RequestCompleteData;
26 26
27 namespace blink { 27 namespace blink {
28 class WebThreadedDataReceiver; 28 class WebThreadedDataReceiver;
29 } 29 }
30 30
31 namespace net { 31 namespace net {
32 struct RedirectInfo; 32 struct RedirectInfo;
33 } 33 }
34 34
35 namespace webkit_glue { 35 namespace content {
36 class ResourceLoaderBridge; 36 class ResourceLoaderBridge;
37 }
38
39 namespace content {
40 class RequestPeer; 37 class RequestPeer;
Avi (use Gerrit) 2014/09/02 22:34:36 alphabetize
tfarina 2014/09/05 01:07:25 Done.
41 class ResourceDispatcherDelegate; 38 class ResourceDispatcherDelegate;
42 class ThreadedDataProvider; 39 class ThreadedDataProvider;
43 struct ResourceResponseInfo; 40 struct ResourceResponseInfo;
44 struct RequestInfo; 41 struct RequestInfo;
45 struct ResourceResponseHead; 42 struct ResourceResponseHead;
46 struct SiteIsolationResponseMetaData; 43 struct SiteIsolationResponseMetaData;
47 44
48 // This class serves as a communication interface between the 45 // This class serves as a communication interface between the
49 // ResourceDispatcherHost in the browser process and the ResourceLoaderBridge in 46 // ResourceDispatcherHost in the browser process and the ResourceLoaderBridge in
50 // the child process. It can be used from any child process. 47 // the child process. It can be used from any child process.
51 class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener { 48 class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
52 public: 49 public:
53 explicit ResourceDispatcher(IPC::Sender* sender); 50 explicit ResourceDispatcher(IPC::Sender* sender);
54 virtual ~ResourceDispatcher(); 51 virtual ~ResourceDispatcher();
55 52
56 // IPC::Listener implementation. 53 // IPC::Listener implementation.
57 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 54 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
58 55
59 // Creates a ResourceLoaderBridge for this type of dispatcher, this is so 56 // Creates a ResourceLoaderBridge for this type of dispatcher, this is so
60 // this can be tested regardless of the ResourceLoaderBridge::Create 57 // this can be tested regardless of the ResourceLoaderBridge::Create
61 // implementation. Virtual for tests. 58 // implementation. Virtual for tests.
62 virtual webkit_glue::ResourceLoaderBridge* CreateBridge( 59 virtual ResourceLoaderBridge* CreateBridge(const RequestInfo& request_info);
63 const RequestInfo& request_info);
64 60
65 // Adds a request from the |pending_requests_| list, returning the new 61 // Adds a request from the |pending_requests_| list, returning the new
66 // requests' ID. 62 // requests' ID.
67 int AddPendingRequest(RequestPeer* callback, 63 int AddPendingRequest(RequestPeer* callback,
68 ResourceType resource_type, 64 ResourceType resource_type,
69 int origin_pid, 65 int origin_pid,
70 const GURL& frame_origin, 66 const GURL& frame_origin,
71 const GURL& request_url, 67 const GURL& request_url,
72 bool download_to_file); 68 bool download_to_file);
73 69
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 216
221 // IO thread timestamp for ongoing IPC message. 217 // IO thread timestamp for ongoing IPC message.
222 base::TimeTicks io_timestamp_; 218 base::TimeTicks io_timestamp_;
223 219
224 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 220 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
225 }; 221 };
226 222
227 } // namespace content 223 } // namespace content
228 224
229 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 225 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698