OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_BASE_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // Allow setting a profile as Guest after-the-fact to simplify some tests. | 210 // Allow setting a profile as Guest after-the-fact to simplify some tests. |
211 void SetGuestSession(bool guest); | 211 void SetGuestSession(bool guest); |
212 | 212 |
213 TestingPrefServiceSyncable* GetTestingPrefService(); | 213 TestingPrefServiceSyncable* GetTestingPrefService(); |
214 | 214 |
215 // Called on the parent of an incognito |profile|. Usually called from the | 215 // Called on the parent of an incognito |profile|. Usually called from the |
216 // constructor of an incognito TestingProfile, but can also be used by tests | 216 // constructor of an incognito TestingProfile, but can also be used by tests |
217 // to provide an OffTheRecordProfileImpl instance. | 217 // to provide an OffTheRecordProfileImpl instance. |
218 void SetOffTheRecordProfile(scoped_ptr<Profile> profile); | 218 void SetOffTheRecordProfile(scoped_ptr<Profile> profile); |
219 | 219 |
| 220 void SetSupervisedUserId(const std::string& id); |
| 221 |
220 // content::BrowserContext | 222 // content::BrowserContext |
221 base::FilePath GetPath() const override; | 223 base::FilePath GetPath() const override; |
222 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( | 224 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( |
223 const base::FilePath& partition_path) override; | 225 const base::FilePath& partition_path) override; |
224 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; | 226 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() override; |
225 bool IsOffTheRecord() const override; | 227 bool IsOffTheRecord() const override; |
226 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 228 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
227 net::URLRequestContextGetter* GetRequestContext() override; | 229 net::URLRequestContextGetter* GetRequestContext() override; |
228 net::URLRequestContextGetter* CreateRequestContext( | 230 net::URLRequestContextGetter* CreateRequestContext( |
229 content::ProtocolHandlerMap* protocol_handlers, | 231 content::ProtocolHandlerMap* protocol_handlers, |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 | 411 |
410 // Weak pointer to a delegate for indicating that a profile was created. | 412 // Weak pointer to a delegate for indicating that a profile was created. |
411 Delegate* delegate_; | 413 Delegate* delegate_; |
412 | 414 |
413 std::string profile_name_; | 415 std::string profile_name_; |
414 | 416 |
415 scoped_ptr<policy::PolicyService> policy_service_; | 417 scoped_ptr<policy::PolicyService> policy_service_; |
416 }; | 418 }; |
417 | 419 |
418 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 420 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |