OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_TESTING_PROFILE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // profile is destroyed. | 123 // profile is destroyed. |
124 ExtensionService* CreateExtensionService(const CommandLine* command_line, | 124 ExtensionService* CreateExtensionService(const CommandLine* command_line, |
125 const FilePath& install_directory); | 125 const FilePath& install_directory); |
126 | 126 |
127 TestingPrefService* GetTestingPrefService(); | 127 TestingPrefService* GetTestingPrefService(); |
128 | 128 |
129 virtual ProfileId GetRuntimeId(); | 129 virtual ProfileId GetRuntimeId(); |
130 | 130 |
131 virtual FilePath GetPath(); | 131 virtual FilePath GetPath(); |
132 | 132 |
133 // Sets whether we're off the record. Default is false. | 133 // Sets whether we're incognito. Default is false. |
134 void set_off_the_record(bool off_the_record) { | 134 void set_off_the_record(bool off_the_record) { |
135 off_the_record_ = off_the_record; | 135 off_the_record_ = off_the_record; |
136 } | 136 } |
137 virtual bool IsOffTheRecord(); | 137 virtual bool IsOffTheRecord(); |
138 // Assumes ownership. | 138 // Assumes ownership. |
139 virtual void SetOffTheRecordProfile(Profile* profile); | 139 virtual void SetOffTheRecordProfile(Profile* profile); |
140 virtual Profile* GetOffTheRecordProfile(); | 140 virtual Profile* GetOffTheRecordProfile(); |
141 | 141 |
142 virtual void DestroyOffTheRecordProfile() {} | 142 virtual void DestroyOffTheRecordProfile() {} |
143 | 143 |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 explicit DerivedTestingProfile(Profile* profile); | 415 explicit DerivedTestingProfile(Profile* profile); |
416 virtual ~DerivedTestingProfile(); | 416 virtual ~DerivedTestingProfile(); |
417 | 417 |
418 virtual ProfileId GetRuntimeId(); | 418 virtual ProfileId GetRuntimeId(); |
419 | 419 |
420 protected: | 420 protected: |
421 Profile* original_profile_; | 421 Profile* original_profile_; |
422 }; | 422 }; |
423 | 423 |
424 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 424 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |