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 | 9 |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 void set_last_session_exited_cleanly(bool value) { | 252 void set_last_session_exited_cleanly(bool value) { |
253 last_session_exited_cleanly_ = value; | 253 last_session_exited_cleanly_ = value; |
254 } | 254 } |
255 virtual void MergeResourceString(int message_id, | 255 virtual void MergeResourceString(int message_id, |
256 std::wstring* output_string) {} | 256 std::wstring* output_string) {} |
257 virtual void MergeResourceInteger(int message_id, int* output_value) {} | 257 virtual void MergeResourceInteger(int message_id, int* output_value) {} |
258 virtual void MergeResourceBoolean(int message_id, bool* output_value) {} | 258 virtual void MergeResourceBoolean(int message_id, bool* output_value) {} |
259 virtual bool IsSameProfile(Profile *p) OVERRIDE; | 259 virtual bool IsSameProfile(Profile *p) OVERRIDE; |
260 virtual base::Time GetStartTime() const OVERRIDE; | 260 virtual base::Time GetStartTime() const OVERRIDE; |
261 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; | 261 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; |
262 virtual void InitPromoResources() OVERRIDE {} | |
263 | 262 |
264 virtual FilePath last_selected_directory() OVERRIDE; | 263 virtual FilePath last_selected_directory() OVERRIDE; |
265 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; | 264 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; |
266 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; | 265 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; |
267 virtual void SetExitType(ExitType exit_type) OVERRIDE {} | 266 virtual void SetExitType(ExitType exit_type) OVERRIDE {} |
268 virtual ExitType GetLastSessionExitType() OVERRIDE; | 267 virtual ExitType GetLastSessionExitType() OVERRIDE; |
269 #if defined(OS_CHROMEOS) | 268 #if defined(OS_CHROMEOS) |
270 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE { | 269 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE { |
271 } | 270 } |
272 virtual void InitChromeOSPreferences() OVERRIDE { | 271 virtual void InitChromeOSPreferences() OVERRIDE { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 // testing. | 356 // testing. |
358 ProfileDependencyManager* profile_dependency_manager_; | 357 ProfileDependencyManager* profile_dependency_manager_; |
359 | 358 |
360 scoped_ptr<content::MockResourceContext> resource_context_; | 359 scoped_ptr<content::MockResourceContext> resource_context_; |
361 | 360 |
362 // Weak pointer to a delegate for indicating that a profile was created. | 361 // Weak pointer to a delegate for indicating that a profile was created. |
363 Delegate* delegate_; | 362 Delegate* delegate_; |
364 }; | 363 }; |
365 | 364 |
366 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ | 365 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |
OLD | NEW |