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

Side by Side Diff: chrome/test/base/testing_profile.h

Issue 282103004: Rename ProtocolInterceptJobFactory and make it not use ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Merge Created 6 years, 6 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 (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 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 // content::BrowserContext 211 // content::BrowserContext
212 virtual base::FilePath GetPath() const OVERRIDE; 212 virtual base::FilePath GetPath() const OVERRIDE;
213 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; 213 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE;
214 virtual bool IsOffTheRecord() const OVERRIDE; 214 virtual bool IsOffTheRecord() const OVERRIDE;
215 virtual content::DownloadManagerDelegate* 215 virtual content::DownloadManagerDelegate*
216 GetDownloadManagerDelegate() OVERRIDE; 216 GetDownloadManagerDelegate() OVERRIDE;
217 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 217 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
218 virtual net::URLRequestContextGetter* CreateRequestContext( 218 virtual net::URLRequestContextGetter* CreateRequestContext(
219 content::ProtocolHandlerMap* protocol_handlers, 219 content::ProtocolHandlerMap* protocol_handlers,
220 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; 220 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE;
221 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 221 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
222 int renderer_child_id) OVERRIDE; 222 int renderer_child_id) OVERRIDE;
223 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 223 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
224 virtual content::GeolocationPermissionContext* 224 virtual content::GeolocationPermissionContext*
225 GetGeolocationPermissionContext() OVERRIDE; 225 GetGeolocationPermissionContext() OVERRIDE;
226 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; 226 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE;
227 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 227 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
228 228
229 virtual TestingProfile* AsTestingProfile() OVERRIDE; 229 virtual TestingProfile* AsTestingProfile() OVERRIDE;
230 230
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 int bridge_id, 299 int bridge_id,
300 int group_id, 300 int group_id,
301 const GURL& requesting_frame, 301 const GURL& requesting_frame,
302 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE; 302 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE;
303 virtual void CancelProtectedMediaIdentifierPermissionRequests( 303 virtual void CancelProtectedMediaIdentifierPermissionRequests(
304 int group_id) OVERRIDE; 304 int group_id) OVERRIDE;
305 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 305 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
306 const base::FilePath& partition_path, 306 const base::FilePath& partition_path,
307 bool in_memory, 307 bool in_memory,
308 content::ProtocolHandlerMap* protocol_handlers, 308 content::ProtocolHandlerMap* protocol_handlers,
309 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; 309 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE;
310 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 310 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
311 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 311 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
312 virtual std::wstring GetName(); 312 virtual std::wstring GetName();
313 virtual void SetName(const std::wstring& name) {} 313 virtual void SetName(const std::wstring& name) {}
314 virtual std::wstring GetID(); 314 virtual std::wstring GetID();
315 virtual void SetID(const std::wstring& id); 315 virtual void SetID(const std::wstring& id);
316 void set_last_session_exited_cleanly(bool value) { 316 void set_last_session_exited_cleanly(bool value) {
317 last_session_exited_cleanly_ = value; 317 last_session_exited_cleanly_ = value;
318 } 318 }
319 virtual void MergeResourceString(int message_id, 319 virtual void MergeResourceString(int message_id,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 436
437 // Weak pointer to a delegate for indicating that a profile was created. 437 // Weak pointer to a delegate for indicating that a profile was created.
438 Delegate* delegate_; 438 Delegate* delegate_;
439 439
440 std::string profile_name_; 440 std::string profile_name_;
441 441
442 scoped_ptr<policy::PolicyService> policy_service_; 442 scoped_ptr<policy::PolicyService> policy_service_;
443 }; 443 };
444 444
445 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 445 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698