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

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

Issue 11147026: Initial refactor to get profiles to propagate storage partition details. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed a merging of removed variable. Created 8 years, 1 month 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_browser_context.h ('k') | no next file » | 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/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 net::URLRequestContextGetter* 122 net::URLRequestContextGetter*
123 ShellBrowserContext::GetMediaRequestContextForRenderProcess( 123 ShellBrowserContext::GetMediaRequestContextForRenderProcess(
124 int renderer_child_id) { 124 int renderer_child_id) {
125 return GetRequestContext(); 125 return GetRequestContext();
126 } 126 }
127 127
128 net::URLRequestContextGetter* 128 net::URLRequestContextGetter*
129 ShellBrowserContext::GetMediaRequestContextForStoragePartition( 129 ShellBrowserContext::GetMediaRequestContextForStoragePartition(
130 const std::string& partition_id) { 130 const FilePath& partition_path,
131 bool in_memory) {
131 return GetRequestContext(); 132 return GetRequestContext();
132 } 133 }
133 134
134 net::URLRequestContextGetter* 135 net::URLRequestContextGetter*
135 ShellBrowserContext::GetRequestContextForStoragePartition( 136 ShellBrowserContext::GetRequestContextForStoragePartition(
136 const std::string& partition_id) { 137 const FilePath& partition_path,
138 bool in_memory) {
137 return NULL; 139 return NULL;
138 } 140 }
139 141
140 ResourceContext* ShellBrowserContext::GetResourceContext() { 142 ResourceContext* ShellBrowserContext::GetResourceContext() {
141 if (!resource_context_.get()) { 143 if (!resource_context_.get()) {
142 resource_context_.reset(new ShellResourceContext( 144 resource_context_.reset(new ShellResourceContext(
143 static_cast<ShellURLRequestContextGetter*>(GetRequestContext()))); 145 static_cast<ShellURLRequestContextGetter*>(GetRequestContext())));
144 } 146 }
145 return resource_context_.get(); 147 return resource_context_.get();
146 } 148 }
147 149
148 GeolocationPermissionContext* 150 GeolocationPermissionContext*
149 ShellBrowserContext::GetGeolocationPermissionContext() { 151 ShellBrowserContext::GetGeolocationPermissionContext() {
150 return NULL; 152 return NULL;
151 } 153 }
152 154
153 SpeechRecognitionPreferences* 155 SpeechRecognitionPreferences*
154 ShellBrowserContext::GetSpeechRecognitionPreferences() { 156 ShellBrowserContext::GetSpeechRecognitionPreferences() {
155 return NULL; 157 return NULL;
156 } 158 }
157 159
158 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 160 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
159 return NULL; 161 return NULL;
160 } 162 }
161 163
162 } // namespace content 164 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698