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

Side by Side Diff: chrome/test/base/testing_browser_process.h

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « chrome/test/base/test_html_dialog_observer.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // An implementation of BrowserProcess for unit tests that fails for most 5 // An implementation of BrowserProcess for unit tests that fails for most
6 // services. By preventing creation of services, we reduce dependencies and 6 // services. By preventing creation of services, we reduce dependencies and
7 // keep the profile clean. Clients of this class must handle the NULL return 7 // keep the profile clean. Clients of this class must handle the NULL return
8 // value, however. 8 // value, however.
9 9
10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
11 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 11 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
12 #pragma once 12 #pragma once
13 13
14 #include <string> 14 #include <string>
15 15
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
19 #include "content/common/notification_service.h" 19 #include "content/browser/notification_service_impl.h"
20 20
21 class BackgroundModeManager; 21 class BackgroundModeManager;
22 class CRLSetFetcher; 22 class CRLSetFetcher;
23 class IOThread; 23 class IOThread;
24 class GoogleURLTracker; 24 class GoogleURLTracker;
25 class MHTMLGenerationManager; 25 class MHTMLGenerationManager;
26 class NotificationUIManager; 26 class NotificationUIManager;
27 class PrefService; 27 class PrefService;
28 class WatchDogThread; 28 class WatchDogThread;
29 29
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // Set the local state for tests. Consumer is responsible for cleaning it up 128 // Set the local state for tests. Consumer is responsible for cleaning it up
129 // afterwards (using ScopedTestingLocalState, for example). 129 // afterwards (using ScopedTestingLocalState, for example).
130 void SetLocalState(PrefService* local_state); 130 void SetLocalState(PrefService* local_state);
131 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); 131 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker);
132 void SetProfileManager(ProfileManager* profile_manager); 132 void SetProfileManager(ProfileManager* profile_manager);
133 void SetIOThread(IOThread* io_thread); 133 void SetIOThread(IOThread* io_thread);
134 void SetDevToolsManager(DevToolsManager*); 134 void SetDevToolsManager(DevToolsManager*);
135 135
136 private: 136 private:
137 NotificationService notification_service_; 137 NotificationServiceImpl notification_service_;
138 unsigned int module_ref_count_; 138 unsigned int module_ref_count_;
139 scoped_ptr<ui::Clipboard> clipboard_; 139 scoped_ptr<ui::Clipboard> clipboard_;
140 std::string app_locale_; 140 std::string app_locale_;
141 141
142 // Weak pointer. 142 // Weak pointer.
143 PrefService* local_state_; 143 PrefService* local_state_;
144 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; 144 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_;
145 scoped_ptr<GoogleURLTracker> google_url_tracker_; 145 scoped_ptr<GoogleURLTracker> google_url_tracker_;
146 scoped_ptr<ProfileManager> profile_manager_; 146 scoped_ptr<ProfileManager> profile_manager_;
147 scoped_ptr<NotificationUIManager> notification_ui_manager_; 147 scoped_ptr<NotificationUIManager> notification_ui_manager_;
148 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; 148 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_;
149 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; 149 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_;
150 IOThread* io_thread_; 150 IOThread* io_thread_;
151 scoped_ptr<DevToolsManager> devtools_manager_; 151 scoped_ptr<DevToolsManager> devtools_manager_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 153 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
154 }; 154 };
155 155
156 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 156 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/test/base/test_html_dialog_observer.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698