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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_resource_context.h ('k') | content/test/test_browser_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/shell/shell_resource_context.h" 5 #include "content/shell/shell_resource_context.h"
6 6
7 #include "content/browser/chrome_blob_storage_context.h" 7 #include "content/browser/chrome_blob_storage_context.h"
8 #include "content/shell/shell_url_request_context_getter.h" 8 #include "content/shell/shell_url_request_context_getter.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 ShellResourceContext::ShellResourceContext( 12 ShellResourceContext::ShellResourceContext(
13 ShellURLRequestContextGetter* getter, 13 ShellURLRequestContextGetter* getter,
14 ChromeBlobStorageContext* blob_storage_context) 14 ChromeBlobStorageContext* blob_storage_context)
15 : getter_(getter), 15 : getter_(getter),
16 blob_storage_context_(blob_storage_context) { 16 blob_storage_context_(blob_storage_context) {
17 } 17 }
18 18
19 ShellResourceContext::~ShellResourceContext() { 19 ShellResourceContext::~ShellResourceContext() {
20 } 20 }
21 21
22 void ShellResourceContext::EnsureInitialized() const { 22 net::HostResolver* ShellResourceContext::GetHostResolver() {
23 const_cast<ShellResourceContext*>(this)->InitializeInternal(); 23 return getter_->host_resolver();
24 } 24 }
25 25
26 void ShellResourceContext::InitializeInternal() { 26 net::URLRequestContext* ShellResourceContext::GetRequestContext() {
27 set_request_context(getter_->GetURLRequestContext()); 27 return getter_->GetURLRequestContext();
28 set_host_resolver(getter_->host_resolver()); 28 }
29 set_blob_storage_context(blob_storage_context_); 29
30 ChromeAppCacheService* ShellResourceContext::GetAppCacheService() {
31 return NULL;
32 }
33
34 webkit_database::DatabaseTracker* ShellResourceContext::GetDatabaseTracker() {
35 return NULL;
36 }
37
38 fileapi::FileSystemContext* ShellResourceContext::GetFileSystemContext() {
39 return NULL;
40 }
41
42 ChromeBlobStorageContext* ShellResourceContext::GetBlobStorageContext() {
43 return blob_storage_context_;
44 }
45
46 quota::QuotaManager* ShellResourceContext::GetQuotaManager() {
47 return NULL;
48 }
49
50 HostZoomMap* ShellResourceContext::GetHostZoomMap() {
51 return NULL;
52 }
53
54 MediaObserver* ShellResourceContext::GetMediaObserver() {
55 return NULL;
56 }
57
58 media_stream::MediaStreamManager*
59 ShellResourceContext::GetMediaStreamManager() {
60 return NULL;
61 }
62
63 AudioManager* ShellResourceContext::GetAudioManager() {
64 return NULL;
30 } 65 }
31 66
32 } // namespace content 67 } // namespace content
OLDNEW
« 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