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 // 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 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" | 7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 #include "webkit/appcache/appcache_interceptor.h" | 78 #include "webkit/appcache/appcache_interceptor.h" |
79 #include "webkit/appcache/appcache_interfaces.h" | 79 #include "webkit/appcache/appcache_interfaces.h" |
80 #include "webkit/blob/blob_storage_controller.h" | 80 #include "webkit/blob/blob_storage_controller.h" |
81 #include "webkit/blob/shareable_file_reference.h" | 81 #include "webkit/blob/shareable_file_reference.h" |
82 #include "webkit/glue/resource_request_body.h" | 82 #include "webkit/glue/resource_request_body.h" |
83 #include "webkit/glue/webkit_glue.h" | 83 #include "webkit/glue/webkit_glue.h" |
84 | 84 |
85 using base::Time; | 85 using base::Time; |
86 using base::TimeDelta; | 86 using base::TimeDelta; |
87 using base::TimeTicks; | 87 using base::TimeTicks; |
| 88 using content::WebContentsImpl; |
88 using webkit_blob::ShareableFileReference; | 89 using webkit_blob::ShareableFileReference; |
89 using webkit_glue::ResourceRequestBody; | 90 using webkit_glue::ResourceRequestBody; |
90 | 91 |
91 // ---------------------------------------------------------------------------- | 92 // ---------------------------------------------------------------------------- |
92 | 93 |
93 namespace content { | 94 namespace content { |
94 | 95 |
95 namespace { | 96 namespace { |
96 | 97 |
97 static ResourceDispatcherHostImpl* g_resource_dispatcher_host; | 98 static ResourceDispatcherHostImpl* g_resource_dispatcher_host; |
(...skipping 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 | 1722 |
1722 return i->second.get(); | 1723 return i->second.get(); |
1723 } | 1724 } |
1724 | 1725 |
1725 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id, | 1726 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id, |
1726 int request_id) const { | 1727 int request_id) const { |
1727 return GetLoader(GlobalRequestID(child_id, request_id)); | 1728 return GetLoader(GlobalRequestID(child_id, request_id)); |
1728 } | 1729 } |
1729 | 1730 |
1730 } // namespace content | 1731 } // namespace content |
OLD | NEW |