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 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 |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "content/public/browser/child_process_data.h" | 30 #include "content/public/browser/child_process_data.h" |
31 #include "content/public/browser/notification_types.h" | 31 #include "content/public/browser/notification_types.h" |
32 #include "content/public/browser/resource_dispatcher_host.h" | 32 #include "content/public/browser/resource_dispatcher_host.h" |
33 #include "ipc/ipc_message.h" | 33 #include "ipc/ipc_message.h" |
34 #include "net/cookies/canonical_cookie.h" | 34 #include "net/cookies/canonical_cookie.h" |
35 #include "net/url_request/url_request.h" | 35 #include "net/url_request/url_request.h" |
36 #include "webkit/glue/resource_type.h" | 36 #include "webkit/glue/resource_type.h" |
37 | 37 |
38 class ResourceHandler; | 38 class ResourceHandler; |
39 class SaveFileManager; | 39 class SaveFileManager; |
40 class WebContentsImpl; | |
41 struct ResourceHostMsg_Request; | 40 struct ResourceHostMsg_Request; |
42 struct ViewMsg_SwapOut_Params; | 41 struct ViewMsg_SwapOut_Params; |
43 | 42 |
44 namespace net { | 43 namespace net { |
45 class URLRequestJobFactory; | 44 class URLRequestJobFactory; |
46 } | 45 } |
47 | 46 |
48 namespace webkit_blob { | 47 namespace webkit_blob { |
49 class ShareableFileReference; | 48 class ShareableFileReference; |
50 } | 49 } |
51 | 50 |
52 namespace content { | 51 namespace content { |
53 class ResourceContext; | 52 class ResourceContext; |
54 class ResourceDispatcherHostDelegate; | 53 class ResourceDispatcherHostDelegate; |
55 class ResourceMessageFilter; | 54 class ResourceMessageFilter; |
56 class ResourceRequestInfoImpl; | 55 class ResourceRequestInfoImpl; |
| 56 class WebContentsImpl; |
57 struct DownloadSaveInfo; | 57 struct DownloadSaveInfo; |
58 struct GlobalRequestID; | 58 struct GlobalRequestID; |
59 struct Referrer; | 59 struct Referrer; |
60 | 60 |
61 class CONTENT_EXPORT ResourceDispatcherHostImpl | 61 class CONTENT_EXPORT ResourceDispatcherHostImpl |
62 : public ResourceDispatcherHost, | 62 : public ResourceDispatcherHost, |
63 public ResourceLoaderDelegate { | 63 public ResourceLoaderDelegate { |
64 public: | 64 public: |
65 ResourceDispatcherHostImpl(); | 65 ResourceDispatcherHostImpl(); |
66 virtual ~ResourceDispatcherHostImpl(); | 66 virtual ~ResourceDispatcherHostImpl(); |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 // http://crbug.com/90971 - Assists in tracking down use-after-frees on | 412 // http://crbug.com/90971 - Assists in tracking down use-after-frees on |
413 // shutdown. | 413 // shutdown. |
414 std::set<const ResourceContext*> active_resource_contexts_; | 414 std::set<const ResourceContext*> active_resource_contexts_; |
415 | 415 |
416 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 416 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
417 }; | 417 }; |
418 | 418 |
419 } // namespace content | 419 } // namespace content |
420 | 420 |
421 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 421 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |