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

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

Issue 5915004: Introduce incognito preference settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespaces + fixes for trybot Created 10 years 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) 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; } 315 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; }
316 virtual ChromeBlobStorageContext* GetBlobStorageContext() { return NULL; } 316 virtual ChromeBlobStorageContext* GetBlobStorageContext() { return NULL; }
317 virtual ExtensionInfoMap* GetExtensionInfoMap() { return NULL; } 317 virtual ExtensionInfoMap* GetExtensionInfoMap() { return NULL; }
318 virtual PromoCounter* GetInstantPromoCounter() { return NULL; } 318 virtual PromoCounter* GetInstantPromoCounter() { return NULL; }
319 virtual policy::ProfilePolicyContext* GetPolicyContext() { return NULL; } 319 virtual policy::ProfilePolicyContext* GetPolicyContext() { return NULL; }
320 virtual PrerenderManager* GetPrerenderManager() { return NULL; } 320 virtual PrerenderManager* GetPrerenderManager() { return NULL; }
321 321
322 protected: 322 protected:
323 base::Time start_time_; 323 base::Time start_time_;
324 scoped_ptr<PrefService> prefs_; 324 scoped_ptr<PrefService> prefs_;
325 scoped_ptr<PrefService> incognito_prefs_;
Mattias Nissler (ping if slow) 2010/12/20 14:50:02 Used?
battre 2010/12/21 18:51:59 Done.
325 // ref only for right type, lifecycle is managed by prefs_ 326 // ref only for right type, lifecycle is managed by prefs_
326 TestingPrefService* testing_prefs_; 327 TestingPrefService* testing_prefs_;
327 328
328 private: 329 private:
329 // Destroys favicon service if it has been created. 330 // Destroys favicon service if it has been created.
330 void DestroyFaviconService(); 331 void DestroyFaviconService();
331 332
332 // If the webdata service has been created, it is destroyed. This is invoked 333 // If the webdata service has been created, it is destroyed. This is invoked
333 // from the destructor. 334 // from the destructor.
334 void DestroyWebDataService(); 335 void DestroyWebDataService();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 geolocation_content_settings_map_; 403 geolocation_content_settings_map_;
403 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; 404 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_;
404 scoped_ptr<DesktopNotificationService> desktop_notification_service_; 405 scoped_ptr<DesktopNotificationService> desktop_notification_service_;
405 406
406 // Find bar state. Created lazily by GetFindBarState(). 407 // Find bar state. Created lazily by GetFindBarState().
407 scoped_ptr<FindBarState> find_bar_state_; 408 scoped_ptr<FindBarState> find_bar_state_;
408 409
409 FilePath last_selected_directory_; 410 FilePath last_selected_directory_;
410 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 411 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
411 412
412 // Extension pref store, created for use by |extension_prefs_|.
413 scoped_ptr<ExtensionPrefStore> extension_pref_store_;
414
415 // The Extension Preferences. Only created if CreateExtensionService is 413 // The Extension Preferences. Only created if CreateExtensionService is
416 // invoked. 414 // invoked.
417 scoped_ptr<ExtensionPrefs> extension_prefs_; 415 scoped_ptr<ExtensionPrefs> extension_prefs_;
418 416
419 // For properly notifying the ExtensionService when the profile 417 // For properly notifying the ExtensionService when the profile
420 // is disposed. 418 // is disposed.
421 scoped_refptr<ExtensionService> extensions_service_; 419 scoped_refptr<ExtensionService> extensions_service_;
422 420
423 // The proxy prefs tracker. 421 // The proxy prefs tracker.
424 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 422 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
(...skipping 12 matching lines...) Expand all
437 435
438 virtual ProfileId GetRuntimeId() { 436 virtual ProfileId GetRuntimeId() {
439 return original_profile_->GetRuntimeId(); 437 return original_profile_->GetRuntimeId();
440 } 438 }
441 439
442 protected: 440 protected:
443 Profile* original_profile_; 441 Profile* original_profile_;
444 }; 442 };
445 443
446 #endif // CHROME_TEST_TESTING_PROFILE_H_ 444 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698