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 IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_ | 5 #ifndef IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_ |
6 #define IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_ | 6 #define IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 PrefProxyConfigTracker* GetProxyConfigTracker() override; | 46 PrefProxyConfigTracker* GetProxyConfigTracker() override; |
47 net::SSLConfigService* GetSSLConfigService() override; | 47 net::SSLConfigService* GetSSLConfigService() override; |
48 PrefService* GetPrefs() override; | 48 PrefService* GetPrefs() override; |
49 PrefService* GetOffTheRecordPrefs() override; | 49 PrefService* GetOffTheRecordPrefs() override; |
50 ChromeBrowserStateIOData* GetIOData() override; | 50 ChromeBrowserStateIOData* GetIOData() override; |
51 void ClearNetworkingHistorySince(base::Time time, | 51 void ClearNetworkingHistorySince(base::Time time, |
52 const base::Closure& completion) override; | 52 const base::Closure& completion) override; |
53 net::URLRequestContextGetter* CreateRequestContext( | 53 net::URLRequestContextGetter* CreateRequestContext( |
54 ProtocolHandlerMap* protocol_handlers, | 54 ProtocolHandlerMap* protocol_handlers, |
55 URLRequestInterceptorScopedVector request_interceptors) override; | 55 URLRequestInterceptorScopedVector request_interceptors) override; |
56 net::URLRequestContextGetter* CreateIsolatedRequestContext( | |
57 const base::FilePath& partition_path) override; | |
58 TestChromeBrowserState* AsTestChromeBrowserState() override; | 56 TestChromeBrowserState* AsTestChromeBrowserState() override; |
59 | 57 |
60 // This method is defined as empty following the paradigm of | 58 // This method is defined as empty following the paradigm of |
61 // TestingProfile::DestroyOffTheRecordProfile(). | 59 // TestingProfile::DestroyOffTheRecordProfile(). |
62 void DestroyOffTheRecordChromeBrowserState() override {} | 60 void DestroyOffTheRecordChromeBrowserState() override {} |
63 | 61 |
64 // Creates a WebDataService. If not invoked, the web data service is null. | 62 // Creates a WebDataService. If not invoked, the web data service is null. |
65 void CreateWebDataService(); | 63 void CreateWebDataService(); |
66 | 64 |
67 // Creates the BookmkarBarModel. If not invoked the bookmark bar model is | 65 // Creates the BookmkarBarModel. If not invoked the bookmark bar model is |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 161 |
164 // The incognito ChromeBrowserState instance that is associated with this | 162 // The incognito ChromeBrowserState instance that is associated with this |
165 // non-incognito ChromeBrowserState instance. | 163 // non-incognito ChromeBrowserState instance. |
166 scoped_ptr<TestChromeBrowserState> otr_browser_state_; | 164 scoped_ptr<TestChromeBrowserState> otr_browser_state_; |
167 TestChromeBrowserState* original_browser_state_; | 165 TestChromeBrowserState* original_browser_state_; |
168 | 166 |
169 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserState); | 167 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserState); |
170 }; | 168 }; |
171 | 169 |
172 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_ | 170 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_ |
OLD | NEW |