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

Side by Side Diff: content/browser/loader/resource_handler.h

Issue 2481093003: Introduce ResourceRequesterInfo to abstract the requester of resource request (Closed)
Patch Set: incorporated mmemke's comment Created 4 years, 1 month 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
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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the RenderProcessHosts, and dispatches them to URLRequests. It then 6 // from the RenderProcessHosts, and dispatches them to URLRequests. It then
7 // fowards the messages from the URLRequests back to the correct process for 7 // fowards the messages from the URLRequests back to the correct process for
8 // handling. 8 // handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 11 matching lines...) Expand all
22 class GURL; 22 class GURL;
23 23
24 namespace net { 24 namespace net {
25 class IOBuffer; 25 class IOBuffer;
26 class URLRequest; 26 class URLRequest;
27 class URLRequestStatus; 27 class URLRequestStatus;
28 struct RedirectInfo; 28 struct RedirectInfo;
29 } // namespace net 29 } // namespace net
30 30
31 namespace content { 31 namespace content {
32 class BrowserMessageFilter;
32 class ResourceController; 33 class ResourceController;
33 class ResourceMessageFilter;
34 class ResourceRequestInfoImpl; 34 class ResourceRequestInfoImpl;
35 struct ResourceResponse; 35 struct ResourceResponse;
36 36
37 // The resource dispatcher host uses this interface to process network events 37 // The resource dispatcher host uses this interface to process network events
38 // for an URLRequest instance. A ResourceHandler's lifetime is bound to its 38 // for an URLRequest instance. A ResourceHandler's lifetime is bound to its
39 // associated URLRequest. 39 // associated URLRequest.
40 class CONTENT_EXPORT ResourceHandler 40 class CONTENT_EXPORT ResourceHandler
41 : public NON_EXPORTED_BASE(base::NonThreadSafe) { 41 : public NON_EXPORTED_BASE(base::NonThreadSafe) {
42 public: 42 public:
43 virtual ~ResourceHandler() {} 43 virtual ~ResourceHandler() {}
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 protected: 103 protected:
104 ResourceHandler(net::URLRequest* request); 104 ResourceHandler(net::URLRequest* request);
105 105
106 ResourceController* controller() const { return controller_; } 106 ResourceController* controller() const { return controller_; }
107 net::URLRequest* request() const { return request_; } 107 net::URLRequest* request() const { return request_; }
108 108
109 // Convenience functions. 109 // Convenience functions.
110 ResourceRequestInfoImpl* GetRequestInfo() const; 110 ResourceRequestInfoImpl* GetRequestInfo() const;
111 int GetRequestID() const; 111 int GetRequestID() const;
112 ResourceMessageFilter* GetFilter() const; 112 BrowserMessageFilter* GetFilter() const;
113 113
114 private: 114 private:
115 ResourceController* controller_; 115 ResourceController* controller_;
116 net::URLRequest* request_; 116 net::URLRequest* request_;
117 }; 117 };
118 118
119 } // namespace content 119 } // namespace content
120 120
121 #endif // CONTENT_BROWSER_LOADER_RESOURCE_HANDLER_H_ 121 #endif // CONTENT_BROWSER_LOADER_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698