OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and | 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and |
7 // dispatches them to URLRequests. It then forwards the messages from the | 7 // dispatches them to URLRequests. It then forwards the messages from the |
8 // URLRequests back to the correct process for handling. | 8 // URLRequests back to the correct process for 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 CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 12 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
13 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 13 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
14 #pragma once | 14 #pragma once |
15 | 15 |
16 #include <map> | 16 #include <map> |
17 #include <string> | 17 #include <string> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "base/basictypes.h" | 20 #include "base/basictypes.h" |
21 #include "base/gtest_prod_util.h" | 21 #include "base/gtest_prod_util.h" |
22 #include "base/observer_list.h" | 22 #include "base/observer_list.h" |
23 #include "base/scoped_ptr.h" | 23 #include "base/scoped_ptr.h" |
24 #include "base/timer.h" | 24 #include "base/timer.h" |
25 #include "chrome/common/child_process_info.h" | 25 #include "chrome/common/child_process_info.h" |
26 #include "chrome/common/notification_type.h" | 26 #include "chrome/common/notification_type.h" |
27 #include "chrome/browser/renderer_host/resource_queue.h" | 27 #include "content/browser/renderer_host/resource_queue.h" |
28 #include "ipc/ipc_message.h" | 28 #include "ipc/ipc_message.h" |
29 #include "net/url_request/url_request.h" | 29 #include "net/url_request/url_request.h" |
30 #include "webkit/glue/resource_type.h" | 30 #include "webkit/glue/resource_type.h" |
31 | 31 |
32 class CrossSiteResourceHandler; | 32 class CrossSiteResourceHandler; |
33 class DownloadFileManager; | 33 class DownloadFileManager; |
34 class DownloadRequestLimiter; | 34 class DownloadRequestLimiter; |
35 class LoginHandler; | 35 class LoginHandler; |
36 class NotificationDetails; | 36 class NotificationDetails; |
37 class PluginService; | 37 class PluginService; |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 | 506 |
507 // Used during IPC message dispatching so that the handlers can get a pointer | 507 // Used during IPC message dispatching so that the handlers can get a pointer |
508 // to the source of the message. | 508 // to the source of the message. |
509 ResourceMessageFilter* filter_; | 509 ResourceMessageFilter* filter_; |
510 | 510 |
511 static bool is_prefetch_enabled_; | 511 static bool is_prefetch_enabled_; |
512 | 512 |
513 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); | 513 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); |
514 }; | 514 }; |
515 | 515 |
516 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ | 516 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |