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

Side by Side Diff: chrome/browser/ui/app_list/test/fake_profile.cc

Issue 187223003: Allow content layer to pass ProtocolInterceptors when we create URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/ui/app_list/test/fake_profile.h" 5 #include "chrome/browser/ui/app_list/test/fake_profile.h"
6 6
7 FakeProfile::FakeProfile(const std::string& name) 7 FakeProfile::FakeProfile(const std::string& name)
8 : name_(name) { 8 : name_(name) {
9 } 9 }
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 bool FakeProfile::IsSameProfile(Profile* profile) { 159 bool FakeProfile::IsSameProfile(Profile* profile) {
160 return false; 160 return false;
161 } 161 }
162 162
163 base::Time FakeProfile::GetStartTime() const { 163 base::Time FakeProfile::GetStartTime() const {
164 return base::Time(); 164 return base::Time();
165 } 165 }
166 166
167 net::URLRequestContextGetter* FakeProfile::CreateRequestContext( 167 net::URLRequestContextGetter* FakeProfile::CreateRequestContext(
168 content::ProtocolHandlerMap* protocol_handlers) { 168 content::ProtocolHandlerMap* protocol_handlers,
169 content::ProtocolHandlerScopedVector protocol_interceptors) {
169 return NULL; 170 return NULL;
170 } 171 }
171 172
172 net::URLRequestContextGetter* 173 net::URLRequestContextGetter*
173 FakeProfile::CreateRequestContextForStoragePartition( 174 FakeProfile::CreateRequestContextForStoragePartition(
174 const base::FilePath& partition_path, 175 const base::FilePath& partition_path,
175 bool in_memory, 176 bool in_memory,
176 content::ProtocolHandlerMap* protocol_handlers) { 177 content::ProtocolHandlerMap* protocol_handlers,
178 content::ProtocolHandlerScopedVector protocol_interceptors) {
177 return NULL; 179 return NULL;
178 } 180 }
179 181
180 base::FilePath FakeProfile::last_selected_directory() { 182 base::FilePath FakeProfile::last_selected_directory() {
181 return base::FilePath(); 183 return base::FilePath();
182 } 184 }
183 185
184 void FakeProfile::set_last_selected_directory(const base::FilePath& path) {} 186 void FakeProfile::set_last_selected_directory(const base::FilePath& path) {}
185 187
186 #if defined(OS_CHROMEOS) 188 #if defined(OS_CHROMEOS)
(...skipping 22 matching lines...) Expand all
209 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { 211 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) {
210 return false; 212 return false;
211 } 213 }
212 214
213 void FakeProfile::SetExitType(ExitType exit_type) { 215 void FakeProfile::SetExitType(ExitType exit_type) {
214 } 216 }
215 217
216 Profile::ExitType FakeProfile::GetLastSessionExitType() { 218 Profile::ExitType FakeProfile::GetLastSessionExitType() {
217 return EXIT_NORMAL; 219 return EXIT_NORMAL;
218 } 220 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698