| 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 "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
| 13 | 13 |
| 14 class ResourceContext; | 14 class ResourceContext; |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 class URLRequestContextGetter; | 17 class URLRequestContextGetter; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 class DownloadManagerDelegate; | 21 class DownloadManagerDelegate; |
| 22 class GeolocationPermissionContext; | 22 class GeolocationPermissionContext; |
| 23 class ResourceContext; | 23 class ResourceContext; |
| 24 } | 24 } |
| 25 | 25 |
| 26 class FakeProfile : public Profile { | 26 class FakeProfile : public Profile { |
| 27 public: | 27 public: |
| 28 explicit FakeProfile(const std::string& name); | 28 explicit FakeProfile(const std::string& name); |
| 29 FakeProfile(const std::string& name, const base::FilePath& path); |
| 29 | 30 |
| 30 // Profile overrides. | 31 // Profile overrides. |
| 31 virtual std::string GetProfileName() OVERRIDE; | 32 virtual std::string GetProfileName() OVERRIDE; |
| 32 virtual base::FilePath GetPath() const OVERRIDE; | 33 virtual base::FilePath GetPath() const OVERRIDE; |
| 33 virtual bool IsOffTheRecord() const OVERRIDE; | 34 virtual bool IsOffTheRecord() const OVERRIDE; |
| 34 virtual content::DownloadManagerDelegate* | 35 virtual content::DownloadManagerDelegate* |
| 35 GetDownloadManagerDelegate() OVERRIDE; | 36 GetDownloadManagerDelegate() OVERRIDE; |
| 36 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 37 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 37 int renderer_child_id) OVERRIDE; | 38 int renderer_child_id) OVERRIDE; |
| 38 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 39 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; | 93 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; |
| 93 virtual void ClearNetworkingHistorySince( | 94 virtual void ClearNetworkingHistorySince( |
| 94 base::Time time, const base::Closure& completion) OVERRIDE; | 95 base::Time time, const base::Closure& completion) OVERRIDE; |
| 95 virtual GURL GetHomePage() OVERRIDE; | 96 virtual GURL GetHomePage() OVERRIDE; |
| 96 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; | 97 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; |
| 97 virtual void SetExitType(ExitType exit_type) OVERRIDE; | 98 virtual void SetExitType(ExitType exit_type) OVERRIDE; |
| 98 virtual ExitType GetLastSessionExitType() OVERRIDE; | 99 virtual ExitType GetLastSessionExitType() OVERRIDE; |
| 99 | 100 |
| 100 private: | 101 private: |
| 101 std::string name_; | 102 std::string name_; |
| 103 base::FilePath path_; |
| 102 }; | 104 }; |
| 103 | 105 |
| 104 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ | 106 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ |
| OLD | NEW |