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

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

Issue 11340029: Move remaining files in content\browser to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
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" 8 #include "content/browser/appcache/chrome_appcache_service.h"
9 #include "content/browser/fileapi/browser_file_system_helper.h" 9 #include "content/browser/fileapi/browser_file_system_helper.h"
10 #include "content/browser/fileapi/chrome_blob_storage_context.h" 10 #include "content/browser/fileapi/chrome_blob_storage_context.h"
(...skipping 18 matching lines...) Expand all
29 #include "webkit/blob/blob_url_request_job_factory.h" 29 #include "webkit/blob/blob_url_request_job_factory.h"
30 #include "webkit/database/database_tracker.h" 30 #include "webkit/database/database_tracker.h"
31 #include "webkit/fileapi/file_system_url_request_job_factory.h" 31 #include "webkit/fileapi/file_system_url_request_job_factory.h"
32 32
33 // Key names on ResourceContext. 33 // Key names on ResourceContext.
34 static const char* kBlobStorageContextKeyName = "content_blob_storage_context"; 34 static const char* kBlobStorageContextKeyName = "content_blob_storage_context";
35 static const char* kHostZoomMapKeyName = "content_host_zoom_map"; 35 static const char* kHostZoomMapKeyName = "content_host_zoom_map";
36 36
37 using appcache::AppCacheService; 37 using appcache::AppCacheService;
38 using base::UserDataAdapter; 38 using base::UserDataAdapter;
39 using content::BrowserThread;
40 using fileapi::FileSystemContext; 39 using fileapi::FileSystemContext;
41 using webkit_blob::BlobStorageController; 40 using webkit_blob::BlobStorageController;
42 using webkit_database::DatabaseTracker; 41 using webkit_database::DatabaseTracker;
43 42
44 namespace content { 43 namespace content {
45 44
46 namespace { 45 namespace {
47 46
48 class NonOwningZoomData : public base::SupportsUserData::Data { 47 class NonOwningZoomData : public base::SupportsUserData::Data {
49 public: 48 public:
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // This object is owned by the BrowserContext and not ResourceContext, so 94 // This object is owned by the BrowserContext and not ResourceContext, so
96 // store a non-owning pointer here. 95 // store a non-owning pointer here.
97 resource_context->SetUserData( 96 resource_context->SetUserData(
98 kHostZoomMapKeyName, 97 kHostZoomMapKeyName,
99 new NonOwningZoomData( 98 new NonOwningZoomData(
100 HostZoomMap::GetForBrowserContext(browser_context))); 99 HostZoomMap::GetForBrowserContext(browser_context)));
101 resource_context->DetachUserDataThread(); 100 resource_context->DetachUserDataThread();
102 } 101 }
103 102
104 } // namespace content 103 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698