Chromium Code Reviews| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 virtual PrefService* GetPrefs() OVERRIDE; | 81 virtual PrefService* GetPrefs() OVERRIDE; |
| 82 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; | 82 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; |
| 83 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 83 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| 84 virtual net::URLRequestContextGetter* | 84 virtual net::URLRequestContextGetter* |
| 85 GetRequestContextForExtensions() OVERRIDE; | 85 GetRequestContextForExtensions() OVERRIDE; |
| 86 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; | 86 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; |
| 87 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 87 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; |
| 88 virtual bool IsSameProfile(Profile* profile) OVERRIDE; | 88 virtual bool IsSameProfile(Profile* profile) OVERRIDE; |
| 89 virtual base::Time GetStartTime() const OVERRIDE; | 89 virtual base::Time GetStartTime() const OVERRIDE; |
| 90 virtual net::URLRequestContextGetter* CreateRequestContext( | 90 virtual net::URLRequestContextGetter* CreateRequestContext( |
| 91 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; | 91 content::ProtocolHandlerMap* protocol_handlers, |
| 92 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | |
|
sky
2014/03/07 17:35:41
Why aren't you passing a const& here? If receivers
sky
2014/03/07 17:37:12
Actually, if callers don't need to mutate than a c
mmenke
2014/03/07 17:53:51
This is just like passing a scoped_ptr, only to a
kinuko
2014/03/08 03:37:44
sky@: As Matt wrote I used scoped vector here to i
| |
| 92 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 93 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 93 const base::FilePath& partition_path, | 94 const base::FilePath& partition_path, |
| 94 bool in_memory, | 95 bool in_memory, |
| 95 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; | 96 content::ProtocolHandlerMap* protocol_handlers, |
| 97 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | |
| 96 virtual base::FilePath last_selected_directory() OVERRIDE; | 98 virtual base::FilePath last_selected_directory() OVERRIDE; |
| 97 virtual void set_last_selected_directory(const base::FilePath& path) OVERRIDE; | 99 virtual void set_last_selected_directory(const base::FilePath& path) OVERRIDE; |
| 98 | 100 |
| 99 #if defined(OS_CHROMEOS) | 101 #if defined(OS_CHROMEOS) |
| 100 virtual void ChangeAppLocale( | 102 virtual void ChangeAppLocale( |
| 101 const std::string& locale, AppLocaleChangedVia via) OVERRIDE; | 103 const std::string& locale, AppLocaleChangedVia via) OVERRIDE; |
| 102 virtual void OnLogin() OVERRIDE; | 104 virtual void OnLogin() OVERRIDE; |
| 103 virtual void InitChromeOSPreferences() OVERRIDE; | 105 virtual void InitChromeOSPreferences() OVERRIDE; |
| 104 #endif // defined(OS_CHROMEOS) | 106 #endif // defined(OS_CHROMEOS) |
| 105 | 107 |
| 106 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; | 108 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; |
| 107 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; | 109 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; |
| 108 virtual void ClearNetworkingHistorySince( | 110 virtual void ClearNetworkingHistorySince( |
| 109 base::Time time, const base::Closure& completion) OVERRIDE; | 111 base::Time time, const base::Closure& completion) OVERRIDE; |
| 110 virtual GURL GetHomePage() OVERRIDE; | 112 virtual GURL GetHomePage() OVERRIDE; |
| 111 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; | 113 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; |
| 112 virtual void SetExitType(ExitType exit_type) OVERRIDE; | 114 virtual void SetExitType(ExitType exit_type) OVERRIDE; |
| 113 virtual ExitType GetLastSessionExitType() OVERRIDE; | 115 virtual ExitType GetLastSessionExitType() OVERRIDE; |
| 114 | 116 |
| 115 private: | 117 private: |
| 116 std::string name_; | 118 std::string name_; |
| 117 base::FilePath path_; | 119 base::FilePath path_; |
| 118 }; | 120 }; |
| 119 | 121 |
| 120 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ | 122 #endif // CHROME_BROWSER_UI_APP_LIST_TEST_FAKE_PROFILE_H_ |
| OLD | NEW |