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

Side by Side Diff: content/shell/shell_browser_context.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/browser/resource_context.h ('k') | content/shell/shell_resource_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) 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/shell/shell_browser_context.h" 5 #include "content/shell/shell_browser_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 } 151 }
152 152
153 net::URLRequestContextGetter* 153 net::URLRequestContextGetter*
154 ShellBrowserContext::GetRequestContextForMedia() { 154 ShellBrowserContext::GetRequestContextForMedia() {
155 return GetRequestContext(); 155 return GetRequestContext();
156 } 156 }
157 157
158 ResourceContext* ShellBrowserContext::GetResourceContext() { 158 ResourceContext* ShellBrowserContext::GetResourceContext() {
159 if (!resource_context_.get()) { 159 if (!resource_context_.get()) {
160 resource_context_.reset(new ShellResourceContext( 160 resource_context_.reset(new ShellResourceContext(
161 static_cast<ShellURLRequestContextGetter*>(GetRequestContext()), 161 static_cast<ShellURLRequestContextGetter*>(GetRequestContext())));
162 BrowserContext::GetBlobStorageContext(this)));
163 } 162 }
164 return resource_context_.get(); 163 return resource_context_.get();
165 } 164 }
166 165
167 HostZoomMap* ShellBrowserContext::GetHostZoomMap() { 166 HostZoomMap* ShellBrowserContext::GetHostZoomMap() {
168 if (!host_zoom_map_) 167 if (!host_zoom_map_)
169 host_zoom_map_ = HostZoomMap::Create(); 168 host_zoom_map_ = HostZoomMap::Create();
170 return host_zoom_map_.get(); 169 return host_zoom_map_.get();
171 } 170 }
172 171
(...skipping 14 matching lines...) Expand all
187 186
188 bool ShellBrowserContext::DidLastSessionExitCleanly() { 187 bool ShellBrowserContext::DidLastSessionExitCleanly() {
189 return true; 188 return true;
190 } 189 }
191 190
192 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 191 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
193 return NULL; 192 return NULL;
194 } 193 }
195 194
196 } // namespace content 195 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/resource_context.h ('k') | content/shell/shell_resource_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698