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

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

Issue 1862203005: Remove ContentBrowserClient::CreateRequestContext & CreateRequestContextForStoragePartition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 #ifndef CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( 45 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition(
46 const base::FilePath& partition_path, 46 const base::FilePath& partition_path,
47 bool in_memory) override; 47 bool in_memory) override;
48 content::ResourceContext* GetResourceContext() override; 48 content::ResourceContext* GetResourceContext() override;
49 content::BrowserPluginGuestManager* GetGuestManager() override; 49 content::BrowserPluginGuestManager* GetGuestManager() override;
50 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 50 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
51 content::PushMessagingService* GetPushMessagingService() override; 51 content::PushMessagingService* GetPushMessagingService() override;
52 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; 52 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
53 content::PermissionManager* GetPermissionManager() override; 53 content::PermissionManager* GetPermissionManager() override;
54 content::BackgroundSyncController* GetBackgroundSyncController() override; 54 content::BackgroundSyncController* GetBackgroundSyncController() override;
55 net::URLRequestContextGetter* CreateRequestContext(
56 content::ProtocolHandlerMap* protocol_handlers,
57 content::URLRequestInterceptorScopedVector request_interceptors) override;
58 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
59 const base::FilePath& partition_path,
60 bool in_memory,
61 content::ProtocolHandlerMap* protocol_handlers,
62 content::URLRequestInterceptorScopedVector request_interceptors) override;
55 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; 63 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override;
56 Profile* GetOffTheRecordProfile() override; 64 Profile* GetOffTheRecordProfile() override;
57 void DestroyOffTheRecordProfile() override; 65 void DestroyOffTheRecordProfile() override;
58 bool HasOffTheRecordProfile() override; 66 bool HasOffTheRecordProfile() override;
59 Profile* GetOriginalProfile() override; 67 Profile* GetOriginalProfile() override;
60 bool IsSupervised() const override; 68 bool IsSupervised() const override;
61 bool IsChild() const override; 69 bool IsChild() const override;
62 bool IsLegacySupervised() const override; 70 bool IsLegacySupervised() const override;
63 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override; 71 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override;
64 PrefService* GetPrefs() override; 72 PrefService* GetPrefs() override;
65 const PrefService* GetPrefs() const override; 73 const PrefService* GetPrefs() const override;
66 PrefService* GetOffTheRecordPrefs() override; 74 PrefService* GetOffTheRecordPrefs() override;
67 net::URLRequestContextGetter* GetRequestContext() override; 75 net::URLRequestContextGetter* GetRequestContext() override;
68 net::URLRequestContextGetter* GetRequestContextForExtensions() override; 76 net::URLRequestContextGetter* GetRequestContextForExtensions() override;
69 net::SSLConfigService* GetSSLConfigService() override; 77 net::SSLConfigService* GetSSLConfigService() override;
70 bool IsSameProfile(Profile* profile) override; 78 bool IsSameProfile(Profile* profile) override;
71 base::Time GetStartTime() const override; 79 base::Time GetStartTime() const override;
72 net::URLRequestContextGetter* CreateRequestContext(
73 content::ProtocolHandlerMap* protocol_handlers,
74 content::URLRequestInterceptorScopedVector request_interceptors) override;
75 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
76 const base::FilePath& partition_path,
77 bool in_memory,
78 content::ProtocolHandlerMap* protocol_handlers,
79 content::URLRequestInterceptorScopedVector request_interceptors) override;
80 base::FilePath last_selected_directory() override; 80 base::FilePath last_selected_directory() override;
81 void set_last_selected_directory(const base::FilePath& path) override; 81 void set_last_selected_directory(const base::FilePath& path) override;
82 82
83 #if defined(OS_CHROMEOS) 83 #if defined(OS_CHROMEOS)
84 void ChangeAppLocale(const std::string& locale, 84 void ChangeAppLocale(const std::string& locale,
85 AppLocaleChangedVia via) override; 85 AppLocaleChangedVia via) override;
86 void OnLogin() override; 86 void OnLogin() override;
87 void InitChromeOSPreferences() override; 87 void InitChromeOSPreferences() override;
88 #endif // defined(OS_CHROMEOS) 88 #endif // defined(OS_CHROMEOS)
89 89
90 PrefProxyConfigTracker* GetProxyConfigTracker() override; 90 PrefProxyConfigTracker* GetProxyConfigTracker() override;
91 chrome_browser_net::Predictor* GetNetworkPredictor() override; 91 chrome_browser_net::Predictor* GetNetworkPredictor() override;
92 DevToolsNetworkControllerHandle* GetDevToolsNetworkControllerHandle() 92 DevToolsNetworkControllerHandle* GetDevToolsNetworkControllerHandle()
93 override; 93 override;
94 void ClearNetworkingHistorySince(base::Time time, 94 void ClearNetworkingHistorySince(base::Time time,
95 const base::Closure& completion) override; 95 const base::Closure& completion) override;
96 GURL GetHomePage() override; 96 GURL GetHomePage() override;
97 bool WasCreatedByVersionOrLater(const std::string& version) override; 97 bool WasCreatedByVersionOrLater(const std::string& version) override;
98 void SetExitType(ExitType exit_type) override; 98 void SetExitType(ExitType exit_type) override;
99 ExitType GetLastSessionExitType() override; 99 ExitType GetLastSessionExitType() override;
100 100
101 private: 101 private:
102 std::string name_; 102 std::string name_;
103 base::FilePath path_; 103 base::FilePath path_;
104 }; 104 };
105 105
106 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ 106 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698