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

Unified Diff: content/public/browser/browser_context.h

Issue 9425026: Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't u… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 10 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/content_browser.gypi ('k') | content/public/browser/resource_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browser_context.h
===================================================================
--- content/public/browser/browser_context.h (revision 122771)
+++ content/public/browser/browser_context.h (working copy)
@@ -10,6 +10,10 @@
#include "base/supports_user_data.h"
#include "content/common/content_export.h"
+namespace appcache {
+class AppCacheService;
+}
+
namespace fileapi {
class FileSystemContext;
}
@@ -27,8 +31,6 @@
class DatabaseTracker;
}
-class ChromeAppCacheService;
-class ChromeBlobStorageContext;
class FilePath;
class WebKitContext;
@@ -49,13 +51,18 @@
static WebKitContext* GetWebKitContext(BrowserContext* browser_context);
static webkit_database::DatabaseTracker* GetDatabaseTracker(
BrowserContext* browser_context);
- static ChromeAppCacheService* GetAppCacheService(
+ static appcache::AppCacheService* GetAppCacheService(
BrowserContext* browser_context);
static fileapi::FileSystemContext* GetFileSystemContext(
BrowserContext* browser_context);
- static ChromeBlobStorageContext* GetBlobStorageContext(
- BrowserContext* browser_context);
+ // Ensures that the corresponding ResourceContext is initialized. Normally the
+ // BrowserContext initializs the corresponding getters when its objects are
+ // created, but if the embedder wants to pass the ResourceContext to another
+ // thread before they use BrowserContext, they should call this to make sure
+ // that the ResourceContext is ready.
+ static void EnsureResourceContextInitialized(BrowserContext* browser_context);
+
virtual ~BrowserContext();
// Returns the path of the directory where this context's data is stored.
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/resource_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698