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

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

Issue 6803012: Profile shouldn't own DesktopNotificationService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Lint Created 9 years, 8 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"
11 #include "base/memory/scoped_temp_dir.h" 11 #include "base/memory/scoped_temp_dir.h"
12 #include "base/timer.h" 12 #include "base/timer.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 14
15 namespace history { 15 namespace history {
16 class TopSites; 16 class TopSites;
17 } 17 }
18 18
19 namespace net { 19 namespace net {
20 class CookieMonster; 20 class CookieMonster;
21 } 21 }
22 22
23 namespace quota { 23 namespace quota {
24 class SpecialStoragePolicy; 24 class SpecialStoragePolicy;
25 } 25 }
26 26
27 class AutocompleteClassifier; 27 class AutocompleteClassifier;
28 class BookmarkModel; 28 class BookmarkModel;
29 class CommandLine; 29 class CommandLine;
30 class DesktopNotificationService;
31 class ExtensionPrefs; 30 class ExtensionPrefs;
32 class ExtensionPrefStore; 31 class ExtensionPrefStore;
33 class ExtensionPrefValueMap; 32 class ExtensionPrefValueMap;
34 class ExtensionSpecialStoragePolicy; 33 class ExtensionSpecialStoragePolicy;
35 class FaviconService; 34 class FaviconService;
36 class FindBarState; 35 class FindBarState;
37 class GeolocationContentSettingsMap; 36 class GeolocationContentSettingsMap;
38 class GeolocationPermissionContext; 37 class GeolocationPermissionContext;
39 class HistoryService; 38 class HistoryService;
40 class HostContentSettingsMap; 39 class HostContentSettingsMap;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 virtual SpellCheckHost* GetSpellCheckHost(); 242 virtual SpellCheckHost* GetSpellCheckHost();
244 virtual void ReinitializeSpellCheckHost(bool force) { } 243 virtual void ReinitializeSpellCheckHost(bool force) { }
245 virtual WebKitContext* GetWebKitContext(); 244 virtual WebKitContext* GetWebKitContext();
246 virtual WebKitContext* GetOffTheRecordWebKitContext(); 245 virtual WebKitContext* GetOffTheRecordWebKitContext();
247 virtual void MarkAsCleanShutdown() {} 246 virtual void MarkAsCleanShutdown() {}
248 virtual void InitExtensions() {} 247 virtual void InitExtensions() {}
249 virtual void InitPromoResources() {} 248 virtual void InitPromoResources() {}
250 virtual void InitRegisteredProtocolHandlers() {} 249 virtual void InitRegisteredProtocolHandlers() {}
251 virtual NTPResourceCache* GetNTPResourceCache(); 250 virtual NTPResourceCache* GetNTPResourceCache();
252 251
253 virtual DesktopNotificationService* GetDesktopNotificationService();
254 virtual BackgroundContentsService* GetBackgroundContentsService() const; 252 virtual BackgroundContentsService* GetBackgroundContentsService() const;
255 virtual StatusTray* GetStatusTray(); 253 virtual StatusTray* GetStatusTray();
256 virtual FilePath last_selected_directory(); 254 virtual FilePath last_selected_directory();
257 virtual void set_last_selected_directory(const FilePath& path); 255 virtual void set_last_selected_directory(const FilePath& path);
258 #if defined(OS_CHROMEOS) 256 #if defined(OS_CHROMEOS)
259 virtual void SetupChromeOSEnterpriseExtensionObserver() { 257 virtual void SetupChromeOSEnterpriseExtensionObserver() {
260 } 258 }
261 virtual void InitChromeOSPreferences() { 259 virtual void InitChromeOSPreferences() {
262 } 260 }
263 virtual void ChangeAppLocale(const std::string&, AppLocaleChangedVia) { 261 virtual void ChangeAppLocale(const std::string&, AppLocaleChangedVia) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 // Should be used only on the file thread. 362 // Should be used only on the file thread.
365 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; 363 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
366 364
367 // WebKitContext, lazily initialized by GetWebKitContext(). 365 // WebKitContext, lazily initialized by GetWebKitContext().
368 scoped_refptr<WebKitContext> webkit_context_; 366 scoped_refptr<WebKitContext> webkit_context_;
369 367
370 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 368 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
371 scoped_refptr<GeolocationContentSettingsMap> 369 scoped_refptr<GeolocationContentSettingsMap>
372 geolocation_content_settings_map_; 370 geolocation_content_settings_map_;
373 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; 371 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_;
374 scoped_ptr<DesktopNotificationService> desktop_notification_service_;
375 372
376 // Find bar state. Created lazily by GetFindBarState(). 373 // Find bar state. Created lazily by GetFindBarState().
377 scoped_ptr<FindBarState> find_bar_state_; 374 scoped_ptr<FindBarState> find_bar_state_;
378 375
379 FilePath last_selected_directory_; 376 FilePath last_selected_directory_;
380 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 377 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
381 378
382 // The Extension Preferences. Only created if CreateExtensionService is 379 // The Extension Preferences. Only created if CreateExtensionService is
383 // invoked. 380 // invoked.
384 scoped_ptr<ExtensionPrefs> extension_prefs_; 381 scoped_ptr<ExtensionPrefs> extension_prefs_;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 explicit DerivedTestingProfile(Profile* profile); 413 explicit DerivedTestingProfile(Profile* profile);
417 virtual ~DerivedTestingProfile(); 414 virtual ~DerivedTestingProfile();
418 415
419 virtual ProfileId GetRuntimeId(); 416 virtual ProfileId GetRuntimeId();
420 417
421 protected: 418 protected:
422 Profile* original_profile_; 419 Profile* original_profile_;
423 }; 420 };
424 421
425 #endif // CHROME_TEST_TESTING_PROFILE_H_ 422 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698