Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2879)

Side by Side Diff: chrome/test/testing_profile.h

Issue 7248038: Profiles: Make NTPResourceCache a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oops. Missed the point. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_; 335 scoped_ptr<NTPResourceCache> ntp_resource_cache_;
Miranda Callahan 2011/06/29 19:31:57 zap this as well?
337 336
338 // Internally, this is a TestURLRequestContextGetter that creates a dummy 337 // Internally, this is a TestURLRequestContextGetter that creates a dummy
339 // request context. Currently, only the CookieMonster is hooked up. 338 // request context. Currently, only the CookieMonster is hooked up.
340 scoped_refptr<net::URLRequestContextGetter> request_context_; 339 scoped_refptr<net::URLRequestContextGetter> request_context_;
341 scoped_refptr<net::URLRequestContextGetter> extensions_request_context_; 340 scoped_refptr<net::URLRequestContextGetter> extensions_request_context_;
342 341
343 std::wstring id_; 342 std::wstring id_;
344 343
345 bool incognito_; 344 bool incognito_;
346 scoped_ptr<Profile> incognito_profile_; 345 scoped_ptr<Profile> incognito_profile_;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 explicit DerivedTestingProfile(Profile* profile); 405 explicit DerivedTestingProfile(Profile* profile);
407 virtual ~DerivedTestingProfile(); 406 virtual ~DerivedTestingProfile();
408 407
409 virtual ProfileId GetRuntimeId(); 408 virtual ProfileId GetRuntimeId();
410 409
411 protected: 410 protected:
412 Profile* original_profile_; 411 Profile* original_profile_;
413 }; 412 };
414 413
415 #endif // CHROME_TEST_TESTING_PROFILE_H_ 414 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698