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

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

Issue 2695333002: Mojo C++ bindings: remove usage of AssociatedGroup from content/ (Closed)
Patch Set: . Created 3 years, 10 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/indexed_db/webidbfactory_impl.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 <stdint.h> 10 #include <stdint.h>
(...skipping 13 matching lines...) Expand all
24 #include "content/common/content_export.h" 24 #include "content/common/content_export.h"
25 #include "content/common/url_loader.mojom.h" 25 #include "content/common/url_loader.mojom.h"
26 #include "content/public/common/resource_type.h" 26 #include "content/public/common/resource_type.h"
27 #include "ipc/ipc_listener.h" 27 #include "ipc/ipc_listener.h"
28 #include "ipc/ipc_sender.h" 28 #include "ipc/ipc_sender.h"
29 #include "net/base/request_priority.h" 29 #include "net/base/request_priority.h"
30 #include "third_party/WebKit/public/platform/WebURLRequest.h" 30 #include "third_party/WebKit/public/platform/WebURLRequest.h"
31 #include "url/gurl.h" 31 #include "url/gurl.h"
32 #include "url/origin.h" 32 #include "url/origin.h"
33 33
34 namespace mojo {
35 class AssociatedGroup;
36 } // namespace mojo
37
38 namespace net { 34 namespace net {
39 struct RedirectInfo; 35 struct RedirectInfo;
40 } 36 }
41 37
42 namespace content { 38 namespace content {
43 class RequestPeer; 39 class RequestPeer;
44 class ResourceDispatcherDelegate; 40 class ResourceDispatcherDelegate;
45 class ResourceSchedulingFilter; 41 class ResourceSchedulingFilter;
46 struct ResourceResponseInfo; 42 struct ResourceResponseInfo;
47 struct ResourceRequest; 43 struct ResourceRequest;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // 91 //
96 // You can pass an optional argument |loading_task_runner| to specify task 92 // You can pass an optional argument |loading_task_runner| to specify task
97 // queue to execute loading tasks on. 93 // queue to execute loading tasks on.
98 virtual int StartAsync( 94 virtual int StartAsync(
99 std::unique_ptr<ResourceRequest> request, 95 std::unique_ptr<ResourceRequest> request,
100 int routing_id, 96 int routing_id,
101 scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner, 97 scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner,
102 const url::Origin& frame_origin, 98 const url::Origin& frame_origin,
103 std::unique_ptr<RequestPeer> peer, 99 std::unique_ptr<RequestPeer> peer,
104 blink::WebURLRequest::LoadingIPCType ipc_type, 100 blink::WebURLRequest::LoadingIPCType ipc_type,
105 mojom::URLLoaderFactory* url_loader_factory, 101 mojom::URLLoaderFactory* url_loader_factory);
106 mojo::AssociatedGroup* associated_group);
107 102
108 // Removes a request from the |pending_requests_| list, returning true if the 103 // Removes a request from the |pending_requests_| list, returning true if the
109 // request was found and removed. 104 // request was found and removed.
110 bool RemovePendingRequest(int request_id); 105 bool RemovePendingRequest(int request_id);
111 106
112 // Cancels a request in the |pending_requests_| list. The request will be 107 // Cancels a request in the |pending_requests_| list. The request will be
113 // removed from the dispatcher as well. 108 // removed from the dispatcher as well.
114 virtual void Cancel(int request_id); 109 virtual void Cancel(int request_id);
115 110
116 // Toggles the is_deferred attribute for the specified request. 111 // Toggles the is_deferred attribute for the specified request.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; 271 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_;
277 272
278 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 273 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
279 274
280 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 275 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
281 }; 276 };
282 277
283 } // namespace content 278 } // namespace content
284 279
285 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 280 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/child/indexed_db/webidbfactory_impl.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698