OLD | NEW |
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 |
11 | 11 |
12 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_HANDLER_H_ | 12 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_HANDLER_H_ |
13 #define CONTENT_BROWSER_LOADER_RESOURCE_HANDLER_H_ | 13 #define CONTENT_BROWSER_LOADER_RESOURCE_HANDLER_H_ |
14 | 14 |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "base/sequenced_task_runner_helpers.h" | 17 #include "base/sequenced_task_runner_helpers.h" |
18 #include "base/threading/non_thread_safe.h" | 18 #include "base/threading/non_thread_safe.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/public/browser/browser_thread.h" | |
21 | 20 |
22 class GURL; | 21 class GURL; |
23 | 22 |
24 namespace net { | 23 namespace net { |
25 class IOBuffer; | 24 class IOBuffer; |
26 class URLRequestStatus; | 25 class URLRequestStatus; |
27 } // namespace net | 26 } // namespace net |
28 | 27 |
29 namespace content { | 28 namespace content { |
30 class ResourceController; | 29 class ResourceController; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 ResourceHandler() : controller_(NULL) {} | 106 ResourceHandler() : controller_(NULL) {} |
108 ResourceController* controller() { return controller_; } | 107 ResourceController* controller() { return controller_; } |
109 | 108 |
110 private: | 109 private: |
111 ResourceController* controller_; | 110 ResourceController* controller_; |
112 }; | 111 }; |
113 | 112 |
114 } // namespace content | 113 } // namespace content |
115 | 114 |
116 #endif // CONTENT_BROWSER_LOADER_RESOURCE_HANDLER_H_ | 115 #endif // CONTENT_BROWSER_LOADER_RESOURCE_HANDLER_H_ |
OLD | NEW |