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

Unified Diff: content/browser/resource_context_impl.cc

Issue 11230028: Split ResourceContext into its own file, and make it compile on iOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/resource_context.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resource_context_impl.cc
diff --git a/content/browser/resource_context_impl.cc b/content/browser/resource_context_impl.cc
index 1ebcbcea287d16c3eea9301b217e923fd2967624..75ff1fa721d9ee726a6053514ef9b9767d1873ac 100644
--- a/content/browser/resource_context_impl.cc
+++ b/content/browser/resource_context_impl.cc
@@ -5,7 +5,6 @@
#include "content/browser/resource_context_impl.h"
#include "base/logging.h"
-#include "content/browser/appcache/chrome_appcache_service.h"
#include "content/browser/fileapi/browser_file_system_helper.h"
#include "content/browser/fileapi/chrome_blob_storage_context.h"
#include "content/browser/histogram_internals_request_job.h"
@@ -23,23 +22,13 @@
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_getter.h"
-#include "webkit/appcache/appcache_service.h"
-#include "webkit/appcache/view_appcache_internals_job.h"
-#include "webkit/blob/blob_data.h"
-#include "webkit/blob/blob_url_request_job_factory.h"
-#include "webkit/database/database_tracker.h"
-#include "webkit/fileapi/file_system_url_request_job_factory.h"
// Key names on ResourceContext.
static const char* kBlobStorageContextKeyName = "content_blob_storage_context";
static const char* kHostZoomMapKeyName = "content_host_zoom_map";
-using appcache::AppCacheService;
using base::UserDataAdapter;
using content::BrowserThread;
-using fileapi::FileSystemContext;
-using webkit_blob::BlobStorageController;
-using webkit_database::DatabaseTracker;
namespace content {
@@ -57,19 +46,6 @@ class NonOwningZoomData : public base::SupportsUserData::Data {
} // namespace
-ResourceContext::ResourceContext() {
- if (ResourceDispatcherHostImpl::Get())
- ResourceDispatcherHostImpl::Get()->AddResourceContext(this);
-}
-
-ResourceContext::~ResourceContext() {
- ResourceDispatcherHostImpl* rdhi = ResourceDispatcherHostImpl::Get();
- if (rdhi) {
- rdhi->CancelRequestsForContext(this);
- rdhi->RemoveResourceContext(this);
- }
-}
-
ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext(
ResourceContext* resource_context) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
« no previous file with comments | « content/browser/resource_context.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698