| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 virtual base::Time GetStartTime() const; | 239 virtual base::Time GetStartTime() const; |
| 240 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); | 240 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); |
| 241 virtual SpellCheckHost* GetSpellCheckHost(); | 241 virtual SpellCheckHost* GetSpellCheckHost(); |
| 242 virtual void ReinitializeSpellCheckHost(bool force) { } | 242 virtual void ReinitializeSpellCheckHost(bool force) { } |
| 243 virtual WebKitContext* GetWebKitContext(); | 243 virtual WebKitContext* GetWebKitContext(); |
| 244 virtual WebKitContext* GetOffTheRecordWebKitContext(); | 244 virtual WebKitContext* GetOffTheRecordWebKitContext(); |
| 245 virtual void MarkAsCleanShutdown() {} | 245 virtual void MarkAsCleanShutdown() {} |
| 246 virtual void InitExtensions(bool extensions_enabled) {} | 246 virtual void InitExtensions(bool extensions_enabled) {} |
| 247 virtual void InitPromoResources() {} | 247 virtual void InitPromoResources() {} |
| 248 virtual void InitRegisteredProtocolHandlers() {} | 248 virtual void InitRegisteredProtocolHandlers() {} |
| 249 virtual NTPResourceCache* GetNTPResourceCache(); | |
| 250 | 249 |
| 251 virtual FilePath last_selected_directory(); | 250 virtual FilePath last_selected_directory(); |
| 252 virtual void set_last_selected_directory(const FilePath& path); | 251 virtual void set_last_selected_directory(const FilePath& path); |
| 253 #if defined(OS_CHROMEOS) | 252 #if defined(OS_CHROMEOS) |
| 254 virtual void SetupChromeOSEnterpriseExtensionObserver() { | 253 virtual void SetupChromeOSEnterpriseExtensionObserver() { |
| 255 } | 254 } |
| 256 virtual void InitChromeOSPreferences() { | 255 virtual void InitChromeOSPreferences() { |
| 257 } | 256 } |
| 258 virtual void ChangeAppLocale(const std::string&, AppLocaleChangedVia) { | 257 virtual void ChangeAppLocale(const std::string&, AppLocaleChangedVia) { |
| 259 } | 258 } |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 // is invoked. | 325 // is invoked. |
| 327 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; | 326 scoped_ptr<AutocompleteClassifier> autocomplete_classifier_; |
| 328 | 327 |
| 329 // The WebDataService. Only created if CreateWebDataService is invoked. | 328 // The WebDataService. Only created if CreateWebDataService is invoked. |
| 330 scoped_refptr<WebDataService> web_data_service_; | 329 scoped_refptr<WebDataService> web_data_service_; |
| 331 | 330 |
| 332 // The TemplateURLFetcher. Only created if CreateTemplateURLFetcher is | 331 // The TemplateURLFetcher. Only created if CreateTemplateURLFetcher is |
| 333 // invoked. | 332 // invoked. |
| 334 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; | 333 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; |
| 335 | 334 |
| 336 scoped_ptr<NTPResourceCache> ntp_resource_cache_; | |
| 337 | |
| 338 // Internally, this is a TestURLRequestContextGetter that creates a dummy | 335 // Internally, this is a TestURLRequestContextGetter that creates a dummy |
| 339 // request context. Currently, only the CookieMonster is hooked up. | 336 // request context. Currently, only the CookieMonster is hooked up. |
| 340 scoped_refptr<net::URLRequestContextGetter> request_context_; | 337 scoped_refptr<net::URLRequestContextGetter> request_context_; |
| 341 scoped_refptr<net::URLRequestContextGetter> extensions_request_context_; | 338 scoped_refptr<net::URLRequestContextGetter> extensions_request_context_; |
| 342 | 339 |
| 343 std::wstring id_; | 340 std::wstring id_; |
| 344 | 341 |
| 345 bool incognito_; | 342 bool incognito_; |
| 346 scoped_ptr<Profile> incognito_profile_; | 343 scoped_ptr<Profile> incognito_profile_; |
| 347 | 344 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 explicit DerivedTestingProfile(Profile* profile); | 403 explicit DerivedTestingProfile(Profile* profile); |
| 407 virtual ~DerivedTestingProfile(); | 404 virtual ~DerivedTestingProfile(); |
| 408 | 405 |
| 409 virtual ProfileId GetRuntimeId(); | 406 virtual ProfileId GetRuntimeId(); |
| 410 | 407 |
| 411 protected: | 408 protected: |
| 412 Profile* original_profile_; | 409 Profile* original_profile_; |
| 413 }; | 410 }; |
| 414 | 411 |
| 415 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 412 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
| OLD | NEW |