| 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; } | |
| 160 virtual bool HasCreatedDownloadManager() const { return false; } | 159 virtual bool HasCreatedDownloadManager() const { return false; } |
| 161 virtual void InitThemes(); | 160 virtual void InitThemes(); |
| 162 virtual void SetTheme(Extension* extension) {} | 161 virtual void SetTheme(Extension* extension) {} |
| 163 virtual void SetNativeTheme() {} | 162 virtual void SetNativeTheme() {} |
| 164 virtual void ClearTheme() {} | 163 virtual void ClearTheme() {} |
| 165 virtual Extension* GetTheme() { return NULL; } | 164 virtual Extension* GetTheme() { return NULL; } |
| 166 virtual BrowserThemeProvider* GetThemeProvider() { | 165 virtual BrowserThemeProvider* GetThemeProvider() { |
| 167 InitThemes(); | 166 InitThemes(); |
| 168 return theme_provider_.get(); | 167 return theme_provider_.get(); |
| 169 } | 168 } |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 | 356 |
| 358 virtual ProfileId GetRuntimeId() { | 357 virtual ProfileId GetRuntimeId() { |
| 359 return original_profile_->GetRuntimeId(); | 358 return original_profile_->GetRuntimeId(); |
| 360 } | 359 } |
| 361 | 360 |
| 362 protected: | 361 protected: |
| 363 Profile* original_profile_; | 362 Profile* original_profile_; |
| 364 }; | 363 }; |
| 365 | 364 |
| 366 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 365 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |