Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: content/browser/resource_context_impl.cc

Issue 11365253: Add empty constructor/destructor to ResourceContext on iOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove iOS constructor Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/public/browser/resource_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/appcache/chrome_appcache_service.h"
9 #include "content/browser/fileapi/browser_file_system_helper.h"
10 #include "content/browser/fileapi/chrome_blob_storage_context.h" 8 #include "content/browser/fileapi/chrome_blob_storage_context.h"
11 #include "content/browser/histogram_internals_request_job.h"
12 #include "content/browser/host_zoom_map_impl.h" 9 #include "content/browser/host_zoom_map_impl.h"
13 #include "content/browser/in_process_webkit/indexed_db_context_impl.h"
14 #include "content/browser/net/view_blob_internals_job_factory.h"
15 #include "content/browser/net/view_http_cache_job_factory.h"
16 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" 10 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h"
17 #include "content/browser/renderer_host/resource_request_info_impl.h" 11 #include "content/browser/renderer_host/resource_request_info_impl.h"
18 #include "content/browser/tcmalloc_internals_request_job.h"
19 #include "content/public/browser/browser_context.h" 12 #include "content/public/browser/browser_context.h"
20 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/storage_partition.h"
22 #include "content/public/common/url_constants.h"
23 #include "net/url_request/url_request.h"
24 #include "net/url_request/url_request_context.h"
25 #include "net/url_request/url_request_context_getter.h"
26 #include "webkit/appcache/appcache_service.h"
27 #include "webkit/appcache/view_appcache_internals_job.h"
28 #include "webkit/blob/blob_data.h"
29 #include "webkit/blob/blob_url_request_job_factory.h"
30 #include "webkit/database/database_tracker.h"
31 #include "webkit/fileapi/file_system_url_request_job_factory.h"
32 14
33 // Key names on ResourceContext. 15 // Key names on ResourceContext.
34 static const char* kBlobStorageContextKeyName = "content_blob_storage_context"; 16 static const char* kBlobStorageContextKeyName = "content_blob_storage_context";
35 static const char* kHostZoomMapKeyName = "content_host_zoom_map"; 17 static const char* kHostZoomMapKeyName = "content_host_zoom_map";
36 18
37 using appcache::AppCacheService;
38 using base::UserDataAdapter; 19 using base::UserDataAdapter;
39 using fileapi::FileSystemContext;
40 using webkit_blob::BlobStorageController;
41 using webkit_database::DatabaseTracker;
42 20
43 namespace content { 21 namespace content {
44 22
45 namespace { 23 namespace {
46 24
47 class NonOwningZoomData : public base::SupportsUserData::Data { 25 class NonOwningZoomData : public base::SupportsUserData::Data {
48 public: 26 public:
49 explicit NonOwningZoomData(HostZoomMap* hzm) : host_zoom_map_(hzm) {} 27 explicit NonOwningZoomData(HostZoomMap* hzm) : host_zoom_map_(hzm) {}
50 HostZoomMap* host_zoom_map() { return host_zoom_map_; } 28 HostZoomMap* host_zoom_map() { return host_zoom_map_; }
51 29
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // This object is owned by the BrowserContext and not ResourceContext, so 72 // This object is owned by the BrowserContext and not ResourceContext, so
95 // store a non-owning pointer here. 73 // store a non-owning pointer here.
96 resource_context->SetUserData( 74 resource_context->SetUserData(
97 kHostZoomMapKeyName, 75 kHostZoomMapKeyName,
98 new NonOwningZoomData( 76 new NonOwningZoomData(
99 HostZoomMap::GetForBrowserContext(browser_context))); 77 HostZoomMap::GetForBrowserContext(browser_context)));
100 resource_context->DetachUserDataThread(); 78 resource_context->DetachUserDataThread();
101 } 79 }
102 80
103 } // namespace content 81 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/browser/resource_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698