| 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 #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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 return NULL; | 149 return NULL; |
| 150 } | 150 } |
| 151 virtual PrefService* GetPrefs(); | 151 virtual PrefService* GetPrefs(); |
| 152 virtual TemplateURLModel* GetTemplateURLModel() { | 152 virtual TemplateURLModel* GetTemplateURLModel() { |
| 153 return template_url_model_.get(); | 153 return template_url_model_.get(); |
| 154 } | 154 } |
| 155 virtual TemplateURLFetcher* GetTemplateURLFetcher() { return NULL; } | 155 virtual TemplateURLFetcher* GetTemplateURLFetcher() { return NULL; } |
| 156 virtual history::TopSites* GetTopSites(); | 156 virtual history::TopSites* GetTopSites(); |
| 157 virtual DownloadManager* GetDownloadManager() { return NULL; } | 157 virtual DownloadManager* GetDownloadManager() { return NULL; } |
| 158 virtual PersonalDataManager* GetPersonalDataManager() { return NULL; } | 158 virtual PersonalDataManager* GetPersonalDataManager() { return NULL; } |
| 159 virtual FileSystemHostContext* GetFileSystemHostContext() { return NULL; } |
| 159 virtual bool HasCreatedDownloadManager() const { return false; } | 160 virtual bool HasCreatedDownloadManager() const { return false; } |
| 160 virtual void InitThemes(); | 161 virtual void InitThemes(); |
| 161 virtual void SetTheme(Extension* extension) {} | 162 virtual void SetTheme(Extension* extension) {} |
| 162 virtual void SetNativeTheme() {} | 163 virtual void SetNativeTheme() {} |
| 163 virtual void ClearTheme() {} | 164 virtual void ClearTheme() {} |
| 164 virtual Extension* GetTheme() { return NULL; } | 165 virtual Extension* GetTheme() { return NULL; } |
| 165 virtual BrowserThemeProvider* GetThemeProvider() { | 166 virtual BrowserThemeProvider* GetThemeProvider() { |
| 166 InitThemes(); | 167 InitThemes(); |
| 167 return theme_provider_.get(); | 168 return theme_provider_.get(); |
| 168 } | 169 } |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 | 357 |
| 357 virtual ProfileId GetRuntimeId() { | 358 virtual ProfileId GetRuntimeId() { |
| 358 return original_profile_->GetRuntimeId(); | 359 return original_profile_->GetRuntimeId(); |
| 359 } | 360 } |
| 360 | 361 |
| 361 protected: | 362 protected: |
| 362 Profile* original_profile_; | 363 Profile* original_profile_; |
| 363 }; | 364 }; |
| 364 | 365 |
| 365 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 366 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |