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

Unified Diff: content/shell/shell_resource_context.cc

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync 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/shell/shell_resource_context.h ('k') | content/test/test_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_resource_context.cc
===================================================================
--- content/shell/shell_resource_context.cc (revision 121250)
+++ content/shell/shell_resource_context.cc (working copy)
@@ -19,14 +19,49 @@
ShellResourceContext::~ShellResourceContext() {
}
-void ShellResourceContext::EnsureInitialized() const {
- const_cast<ShellResourceContext*>(this)->InitializeInternal();
+net::HostResolver* ShellResourceContext::GetHostResolver() {
+ return getter_->host_resolver();
}
-void ShellResourceContext::InitializeInternal() {
- set_request_context(getter_->GetURLRequestContext());
- set_host_resolver(getter_->host_resolver());
- set_blob_storage_context(blob_storage_context_);
+net::URLRequestContext* ShellResourceContext::GetRequestContext() {
+ return getter_->GetURLRequestContext();
}
+ChromeAppCacheService* ShellResourceContext::GetAppCacheService() {
+ return NULL;
+}
+
+webkit_database::DatabaseTracker* ShellResourceContext::GetDatabaseTracker() {
+ return NULL;
+}
+
+fileapi::FileSystemContext* ShellResourceContext::GetFileSystemContext() {
+ return NULL;
+}
+
+ChromeBlobStorageContext* ShellResourceContext::GetBlobStorageContext() {
+ return blob_storage_context_;
+}
+
+quota::QuotaManager* ShellResourceContext::GetQuotaManager() {
+ return NULL;
+}
+
+HostZoomMap* ShellResourceContext::GetHostZoomMap() {
+ return NULL;
+}
+
+MediaObserver* ShellResourceContext::GetMediaObserver() {
+ return NULL;
+}
+
+media_stream::MediaStreamManager*
+ ShellResourceContext::GetMediaStreamManager() {
+ return NULL;
+}
+
+AudioManager* ShellResourceContext::GetAudioManager() {
+ return NULL;
+}
+
} // namespace content
« no previous file with comments | « content/shell/shell_resource_context.h ('k') | content/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698