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" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "components/domain_reliability/clear_mode.h" | 12 #include "components/domain_reliability/clear_mode.h" |
13 #include "content/public/browser/browser_context.h" | 13 #include "content/public/browser/browser_context.h" |
14 | 14 |
15 class ResourceContext; | 15 class ResourceContext; |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 class URLRequestContextGetter; | 18 class URLRequestContextGetter; |
19 } | 19 } |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 class DownloadManagerDelegate; | 22 class DownloadManagerDelegate; |
23 class GeolocationPermissionContext; | |
24 class ResourceContext; | 23 class ResourceContext; |
25 } | 24 } |
26 | 25 |
27 class FakeProfile : public Profile { | 26 class FakeProfile : public Profile { |
28 public: | 27 public: |
29 explicit FakeProfile(const std::string& name); | 28 explicit FakeProfile(const std::string& name); |
30 FakeProfile(const std::string& name, const base::FilePath& path); | 29 FakeProfile(const std::string& name, const base::FilePath& path); |
31 | 30 |
32 // Profile overrides. | 31 // Profile overrides. |
33 virtual std::string GetProfileName() OVERRIDE; | 32 virtual std::string GetProfileName() OVERRIDE; |
(...skipping 26 matching lines...) Expand all Loading... |
60 virtual void RequestProtectedMediaIdentifierPermission( | 59 virtual void RequestProtectedMediaIdentifierPermission( |
61 int render_process_id, | 60 int render_process_id, |
62 int render_view_id, | 61 int render_view_id, |
63 const GURL& origin, | 62 const GURL& origin, |
64 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE; | 63 const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE; |
65 virtual void CancelProtectedMediaIdentifierPermissionRequests( | 64 virtual void CancelProtectedMediaIdentifierPermissionRequests( |
66 int render_process_id, | 65 int render_process_id, |
67 int render_view_id, | 66 int render_view_id, |
68 const GURL& origin) OVERRIDE; | 67 const GURL& origin) OVERRIDE; |
69 virtual content::ResourceContext* GetResourceContext() OVERRIDE; | 68 virtual content::ResourceContext* GetResourceContext() OVERRIDE; |
70 virtual content::GeolocationPermissionContext* | |
71 GetGeolocationPermissionContext() OVERRIDE; | |
72 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; | 69 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE; |
73 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 70 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
74 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; | 71 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE; |
75 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; | 72 virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE; |
76 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 73 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
77 virtual void DestroyOffTheRecordProfile() OVERRIDE; | 74 virtual void DestroyOffTheRecordProfile() OVERRIDE; |
78 virtual bool HasOffTheRecordProfile() OVERRIDE; | 75 virtual bool HasOffTheRecordProfile() OVERRIDE; |
79 virtual Profile* GetOriginalProfile() OVERRIDE; | 76 virtual Profile* GetOriginalProfile() OVERRIDE; |
80 virtual bool IsSupervised() OVERRIDE; | 77 virtual bool IsSupervised() OVERRIDE; |
81 virtual history::TopSites* GetTopSites() OVERRIDE; | 78 virtual history::TopSites* GetTopSites() OVERRIDE; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; | 119 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; |
123 virtual void SetExitType(ExitType exit_type) OVERRIDE; | 120 virtual void SetExitType(ExitType exit_type) OVERRIDE; |
124 virtual ExitType GetLastSessionExitType() OVERRIDE; | 121 virtual ExitType GetLastSessionExitType() OVERRIDE; |
125 | 122 |
126 private: | 123 private: |
127 std::string name_; | 124 std::string name_; |
128 base::FilePath path_; | 125 base::FilePath path_; |
129 }; | 126 }; |
130 | 127 |
131 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ | 128 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ |
OLD | NEW |