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 ResourceContext; | 23 class ResourceContext; |
24 class SSLHostStateDelegate; | 24 class SSLHostStateDelegate; |
| 25 class ZoomLevelDelegate; |
25 } | 26 } |
26 | 27 |
27 class FakeProfile : public Profile { | 28 class FakeProfile : public Profile { |
28 public: | 29 public: |
29 explicit FakeProfile(const std::string& name); | 30 explicit FakeProfile(const std::string& name); |
30 FakeProfile(const std::string& name, const base::FilePath& path); | 31 FakeProfile(const std::string& name, const base::FilePath& path); |
31 | 32 |
32 // Profile overrides. | 33 // Profile overrides. |
33 std::string GetProfileName() override; | 34 std::string GetProfileName() override; |
34 ProfileType GetProfileType() const override; | 35 ProfileType GetProfileType() const override; |
35 base::FilePath GetPath() const override; | 36 base::FilePath GetPath() const override; |
| 37 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( |
| 38 const base::FilePath& partition_path) override; |
36 bool IsOffTheRecord() const override; | 39 bool IsOffTheRecord() const override; |
37 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 40 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
38 net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 41 net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
39 int renderer_child_id) override; | 42 int renderer_child_id) override; |
40 net::URLRequestContextGetter* GetMediaRequestContext() override; | 43 net::URLRequestContextGetter* GetMediaRequestContext() override; |
41 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 44 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
42 int renderer_child_id) override; | 45 int renderer_child_id) override; |
43 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( | 46 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( |
44 const base::FilePath& partition_path, | 47 const base::FilePath& partition_path, |
45 bool in_memory) override; | 48 bool in_memory) override; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 bool WasCreatedByVersionOrLater(const std::string& version) override; | 95 bool WasCreatedByVersionOrLater(const std::string& version) override; |
93 void SetExitType(ExitType exit_type) override; | 96 void SetExitType(ExitType exit_type) override; |
94 ExitType GetLastSessionExitType() override; | 97 ExitType GetLastSessionExitType() override; |
95 | 98 |
96 private: | 99 private: |
97 std::string name_; | 100 std::string name_; |
98 base::FilePath path_; | 101 base::FilePath path_; |
99 }; | 102 }; |
100 | 103 |
101 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ | 104 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ |
OLD | NEW |