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