| 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 13 matching lines...) Expand all Loading... |
| 24 class SSLHostStateDelegate; | 24 class SSLHostStateDelegate; |
| 25 class ZoomLevelDelegate; | 25 class ZoomLevelDelegate; |
| 26 } | 26 } |
| 27 | 27 |
| 28 class FakeProfile : public Profile { | 28 class FakeProfile : public Profile { |
| 29 public: | 29 public: |
| 30 explicit FakeProfile(const std::string& name); | 30 explicit FakeProfile(const std::string& name); |
| 31 FakeProfile(const std::string& name, const base::FilePath& path); | 31 FakeProfile(const std::string& name, const base::FilePath& path); |
| 32 | 32 |
| 33 // Profile overrides. | 33 // Profile overrides. |
| 34 std::string GetProfileUserName() override; | 34 std::string GetProfileUserName() const override; |
| 35 ProfileType GetProfileType() const override; | 35 ProfileType GetProfileType() const override; |
| 36 base::FilePath GetPath() const override; | 36 base::FilePath GetPath() const override; |
| 37 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( | 37 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( |
| 38 const base::FilePath& partition_path) override; | 38 const base::FilePath& partition_path) override; |
| 39 bool IsOffTheRecord() const override; | 39 bool IsOffTheRecord() const override; |
| 40 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 40 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
| 41 net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 41 net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 42 int renderer_child_id) override; | 42 int renderer_child_id) override; |
| 43 net::URLRequestContextGetter* GetMediaRequestContext() override; | 43 net::URLRequestContextGetter* GetMediaRequestContext() override; |
| 44 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 44 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
| 45 int renderer_child_id) override; | 45 int renderer_child_id) override; |
| 46 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( | 46 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( |
| 47 const base::FilePath& partition_path, | 47 const base::FilePath& partition_path, |
| 48 bool in_memory) override; | 48 bool in_memory) override; |
| 49 content::ResourceContext* GetResourceContext() override; | 49 content::ResourceContext* GetResourceContext() override; |
| 50 content::BrowserPluginGuestManager* GetGuestManager() override; | 50 content::BrowserPluginGuestManager* GetGuestManager() override; |
| 51 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; | 51 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; |
| 52 content::PushMessagingService* GetPushMessagingService() override; | 52 content::PushMessagingService* GetPushMessagingService() override; |
| 53 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; | 53 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; |
| 54 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; | 54 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; |
| 55 Profile* GetOffTheRecordProfile() override; | 55 Profile* GetOffTheRecordProfile() override; |
| 56 void DestroyOffTheRecordProfile() override; | 56 void DestroyOffTheRecordProfile() override; |
| 57 bool HasOffTheRecordProfile() override; | 57 bool HasOffTheRecordProfile() override; |
| 58 Profile* GetOriginalProfile() override; | 58 Profile* GetOriginalProfile() override; |
| 59 bool IsSupervised() override; | 59 bool IsSupervised() override; |
| 60 bool IsChild() override; | 60 bool IsChild() override; |
| 61 bool IsLegacySupervised() override; | 61 bool IsLegacySupervised() override; |
| 62 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override; | 62 ExtensionSpecialStoragePolicy* GetExtensionSpecialStoragePolicy() override; |
| 63 PrefService* GetPrefs() override; | 63 PrefService* GetPrefs() override; |
| 64 const PrefService* GetPrefs() const override; |
| 64 PrefService* GetOffTheRecordPrefs() override; | 65 PrefService* GetOffTheRecordPrefs() override; |
| 65 net::URLRequestContextGetter* GetRequestContext() override; | 66 net::URLRequestContextGetter* GetRequestContext() override; |
| 66 net::URLRequestContextGetter* GetRequestContextForExtensions() override; | 67 net::URLRequestContextGetter* GetRequestContextForExtensions() override; |
| 67 net::SSLConfigService* GetSSLConfigService() override; | 68 net::SSLConfigService* GetSSLConfigService() override; |
| 68 HostContentSettingsMap* GetHostContentSettingsMap() override; | 69 HostContentSettingsMap* GetHostContentSettingsMap() override; |
| 69 bool IsSameProfile(Profile* profile) override; | 70 bool IsSameProfile(Profile* profile) override; |
| 70 base::Time GetStartTime() const override; | 71 base::Time GetStartTime() const override; |
| 71 net::URLRequestContextGetter* CreateRequestContext( | 72 net::URLRequestContextGetter* CreateRequestContext( |
| 72 content::ProtocolHandlerMap* protocol_handlers, | 73 content::ProtocolHandlerMap* protocol_handlers, |
| 73 content::URLRequestInterceptorScopedVector request_interceptors) override; | 74 content::URLRequestInterceptorScopedVector request_interceptors) override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 95 bool WasCreatedByVersionOrLater(const std::string& version) override; | 96 bool WasCreatedByVersionOrLater(const std::string& version) override; |
| 96 void SetExitType(ExitType exit_type) override; | 97 void SetExitType(ExitType exit_type) override; |
| 97 ExitType GetLastSessionExitType() override; | 98 ExitType GetLastSessionExitType() override; |
| 98 | 99 |
| 99 private: | 100 private: |
| 100 std::string name_; | 101 std::string name_; |
| 101 base::FilePath path_; | 102 base::FilePath path_; |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ | 105 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ |
| OLD | NEW |