| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 7 |
| 8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } | 93 } |
| 94 // Sets whether we're off the record. Default is false. | 94 // Sets whether we're off the record. Default is false. |
| 95 void set_off_the_record(bool off_the_record) { | 95 void set_off_the_record(bool off_the_record) { |
| 96 off_the_record_ = off_the_record; | 96 off_the_record_ = off_the_record; |
| 97 } | 97 } |
| 98 virtual bool IsOffTheRecord() { return off_the_record_; } | 98 virtual bool IsOffTheRecord() { return off_the_record_; } |
| 99 virtual Profile* GetOffTheRecordProfile() { return NULL; } | 99 virtual Profile* GetOffTheRecordProfile() { return NULL; } |
| 100 | 100 |
| 101 virtual void DestroyOffTheRecordProfile() {} | 101 virtual void DestroyOffTheRecordProfile() {} |
| 102 | 102 |
| 103 virtual bool HasOffTheRecordProfile() { return false; } |
| 104 |
| 103 virtual Profile* GetOriginalProfile() { return this; } | 105 virtual Profile* GetOriginalProfile() { return this; } |
| 104 virtual webkit_database::DatabaseTracker* GetDatabaseTracker(); | 106 virtual webkit_database::DatabaseTracker* GetDatabaseTracker(); |
| 105 virtual VisitedLinkMaster* GetVisitedLinkMaster() { return NULL; } | 107 virtual VisitedLinkMaster* GetVisitedLinkMaster() { return NULL; } |
| 106 virtual ExtensionsService* GetExtensionsService() { return NULL; } | 108 virtual ExtensionsService* GetExtensionsService() { return NULL; } |
| 107 virtual UserScriptMaster* GetUserScriptMaster() { return NULL; } | 109 virtual UserScriptMaster* GetUserScriptMaster() { return NULL; } |
| 108 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager() { | 110 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager() { |
| 109 return NULL; | 111 return NULL; |
| 110 } | 112 } |
| 111 virtual ExtensionProcessManager* GetExtensionProcessManager() { return NULL; } | 113 virtual ExtensionProcessManager* GetExtensionProcessManager() { return NULL; } |
| 112 virtual ExtensionMessageService* GetExtensionMessageService() { return NULL; } | 114 virtual ExtensionMessageService* GetExtensionMessageService() { return NULL; } |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 | 381 |
| 380 virtual ProfileId GetRuntimeId() { | 382 virtual ProfileId GetRuntimeId() { |
| 381 return original_profile_->GetRuntimeId(); | 383 return original_profile_->GetRuntimeId(); |
| 382 } | 384 } |
| 383 | 385 |
| 384 protected: | 386 protected: |
| 385 Profile* original_profile_; | 387 Profile* original_profile_; |
| 386 }; | 388 }; |
| 387 | 389 |
| 388 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 390 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |