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 #include "content/browser/resource_context_impl.h" | 5 #include "content/browser/resource_context_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 8 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
9 #include "content/browser/host_zoom_map_impl.h" | 9 #include "content/browser/host_zoom_map_impl.h" |
10 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" | 10 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
11 #include "content/browser/renderer_host/resource_request_info_impl.h" | 11 #include "content/browser/loader/resource_request_info_impl.h" |
12 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 | 14 |
15 // Key names on ResourceContext. | 15 // Key names on ResourceContext. |
16 static const char* kBlobStorageContextKeyName = "content_blob_storage_context"; | 16 static const char* kBlobStorageContextKeyName = "content_blob_storage_context"; |
17 static const char* kHostZoomMapKeyName = "content_host_zoom_map"; | 17 static const char* kHostZoomMapKeyName = "content_host_zoom_map"; |
18 | 18 |
19 using base::UserDataAdapter; | 19 using base::UserDataAdapter; |
20 | 20 |
21 namespace content { | 21 namespace content { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // This object is owned by the BrowserContext and not ResourceContext, so | 72 // This object is owned by the BrowserContext and not ResourceContext, so |
73 // store a non-owning pointer here. | 73 // store a non-owning pointer here. |
74 resource_context->SetUserData( | 74 resource_context->SetUserData( |
75 kHostZoomMapKeyName, | 75 kHostZoomMapKeyName, |
76 new NonOwningZoomData( | 76 new NonOwningZoomData( |
77 HostZoomMap::GetForBrowserContext(browser_context))); | 77 HostZoomMap::GetForBrowserContext(browser_context))); |
78 resource_context->DetachUserDataThread(); | 78 resource_context->DetachUserDataThread(); |
79 } | 79 } |
80 | 80 |
81 } // namespace content | 81 } // namespace content |
OLD | NEW |