| OLD | NEW |
| 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 12 matching lines...) Expand all Loading... |
| 23 class ResourceContext; | 23 class ResourceContext; |
| 24 class SSLHostStateDelegate; | 24 class SSLHostStateDelegate; |
| 25 } | 25 } |
| 26 | 26 |
| 27 class FakeProfile : public Profile { | 27 class FakeProfile : public Profile { |
| 28 public: | 28 public: |
| 29 explicit FakeProfile(const std::string& name); | 29 explicit FakeProfile(const std::string& name); |
| 30 FakeProfile(const std::string& name, const base::FilePath& path); | 30 FakeProfile(const std::string& name, const base::FilePath& path); |
| 31 | 31 |
| 32 // Profile overrides. | 32 // Profile overrides. |
| 33 virtual std::string GetProfileName() OVERRIDE; | 33 virtual std::string GetProfileName() override; |
| 34 virtual ProfileType GetProfileType() const OVERRIDE; | 34 virtual ProfileType GetProfileType() const override; |
| 35 virtual base::FilePath GetPath() const OVERRIDE; | 35 virtual base::FilePath GetPath() const override; |
| 36 virtual bool IsOffTheRecord() const OVERRIDE; | 36 virtual bool IsOffTheRecord() const override; |
| 37 virtual content::DownloadManagerDelegate* | 37 virtual content::DownloadManagerDelegate* |
| 38 GetDownloadManagerDelegate() OVERRIDE; | 38 GetDownloadManagerDelegate() override; |
| 39 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 39 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 40 int renderer_child_id) OVERRIDE; | 40 int renderer_child_id) override; |
| 41 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 41 virtual net::URLRequestContextGetter* GetMediaRequestContext() override; |
| 42 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 42 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
| 43 int renderer_child_id) OVERRIDE; | 43 int renderer_child_id) override; |
| 44 virtual net::URLRequestContextGetter* | 44 virtual net::URLRequestContextGetter* |
| 45 GetMediaRequestContextForStoragePartition( | 45 GetMediaRequestContextForStoragePartition( |
| 46 const base::FilePath& partition_path, | 46 const base::FilePath& partition_path, |
| 47 bool in_memory) OVERRIDE; | 47 bool in_memory) override; |
| 48 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 48 virtual content::ResourceContext* GetResourceContext() override; |
| 49 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; | 49 virtual content::BrowserPluginGuestManager* GetGuestManager() override; |
| 50 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 50 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
| 51 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; | 51 virtual content::PushMessagingService* GetPushMessagingService() override; |
| 52 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE; | 52 virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
| 53 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; | 53 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; |
| 54 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 54 virtual Profile* GetOffTheRecordProfile() override; |
| 55 virtual void DestroyOffTheRecordProfile() OVERRIDE; | 55 virtual void DestroyOffTheRecordProfile() override; |
| 56 virtual bool HasOffTheRecordProfile() OVERRIDE; | 56 virtual bool HasOffTheRecordProfile() override; |
| 57 virtual Profile* GetOriginalProfile() OVERRIDE; | 57 virtual Profile* GetOriginalProfile() override; |
| 58 virtual bool IsSupervised() OVERRIDE; | 58 virtual bool IsSupervised() override; |
| 59 virtual history::TopSites* GetTopSites() OVERRIDE; | 59 virtual history::TopSites* GetTopSites() override; |
| 60 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; | 60 virtual history::TopSites* GetTopSitesWithoutCreating() override; |
| 61 virtual ExtensionSpecialStoragePolicy* | 61 virtual ExtensionSpecialStoragePolicy* |
| 62 GetExtensionSpecialStoragePolicy() OVERRIDE; | 62 GetExtensionSpecialStoragePolicy() override; |
| 63 virtual PrefService* GetPrefs() OVERRIDE; | 63 virtual PrefService* GetPrefs() override; |
| 64 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; | 64 virtual PrefService* GetOffTheRecordPrefs() override; |
| 65 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 65 virtual net::URLRequestContextGetter* GetRequestContext() override; |
| 66 virtual net::URLRequestContextGetter* | 66 virtual net::URLRequestContextGetter* |
| 67 GetRequestContextForExtensions() OVERRIDE; | 67 GetRequestContextForExtensions() override; |
| 68 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; | 68 virtual net::SSLConfigService* GetSSLConfigService() override; |
| 69 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 69 virtual HostContentSettingsMap* GetHostContentSettingsMap() override; |
| 70 virtual bool IsSameProfile(Profile* profile) OVERRIDE; | 70 virtual bool IsSameProfile(Profile* profile) override; |
| 71 virtual base::Time GetStartTime() const OVERRIDE; | 71 virtual base::Time GetStartTime() const override; |
| 72 virtual net::URLRequestContextGetter* CreateRequestContext( | 72 virtual net::URLRequestContextGetter* CreateRequestContext( |
| 73 content::ProtocolHandlerMap* protocol_handlers, | 73 content::ProtocolHandlerMap* protocol_handlers, |
| 74 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; | 74 content::URLRequestInterceptorScopedVector request_interceptors) override; |
| 75 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 75 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 76 const base::FilePath& partition_path, | 76 const base::FilePath& partition_path, |
| 77 bool in_memory, | 77 bool in_memory, |
| 78 content::ProtocolHandlerMap* protocol_handlers, | 78 content::ProtocolHandlerMap* protocol_handlers, |
| 79 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; | 79 content::URLRequestInterceptorScopedVector request_interceptors) override; |
| 80 virtual base::FilePath last_selected_directory() OVERRIDE; | 80 virtual base::FilePath last_selected_directory() override; |
| 81 virtual void set_last_selected_directory(const base::FilePath& path) OVERRIDE; | 81 virtual void set_last_selected_directory(const base::FilePath& path) override; |
| 82 | 82 |
| 83 #if defined(OS_CHROMEOS) | 83 #if defined(OS_CHROMEOS) |
| 84 virtual void ChangeAppLocale( | 84 virtual void ChangeAppLocale( |
| 85 const std::string& locale, AppLocaleChangedVia via) OVERRIDE; | 85 const std::string& locale, AppLocaleChangedVia via) override; |
| 86 virtual void OnLogin() OVERRIDE; | 86 virtual void OnLogin() override; |
| 87 virtual void InitChromeOSPreferences() OVERRIDE; | 87 virtual void InitChromeOSPreferences() override; |
| 88 #endif // defined(OS_CHROMEOS) | 88 #endif // defined(OS_CHROMEOS) |
| 89 | 89 |
| 90 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; | 90 virtual PrefProxyConfigTracker* GetProxyConfigTracker() override; |
| 91 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; | 91 virtual chrome_browser_net::Predictor* GetNetworkPredictor() override; |
| 92 virtual DevToolsNetworkController* GetDevToolsNetworkController() OVERRIDE; | 92 virtual DevToolsNetworkController* GetDevToolsNetworkController() override; |
| 93 virtual void ClearNetworkingHistorySince( | 93 virtual void ClearNetworkingHistorySince( |
| 94 base::Time time, const base::Closure& completion) OVERRIDE; | 94 base::Time time, const base::Closure& completion) override; |
| 95 virtual GURL GetHomePage() OVERRIDE; | 95 virtual GURL GetHomePage() override; |
| 96 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; | 96 virtual bool WasCreatedByVersionOrLater(const std::string& version) override; |
| 97 virtual void SetExitType(ExitType exit_type) OVERRIDE; | 97 virtual void SetExitType(ExitType exit_type) override; |
| 98 virtual ExitType GetLastSessionExitType() OVERRIDE; | 98 virtual ExitType GetLastSessionExitType() override; |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 std::string name_; | 101 std::string name_; |
| 102 base::FilePath path_; | 102 base::FilePath path_; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ | 105 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ |
| OLD | NEW |