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

Side by Side Diff: chrome/browser/browser_process_impl.h

Issue 208068: Desktop Notifications UI (for windows) (Closed)
Patch Set: Created 11 years, 3 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
« no previous file with comments | « chrome/browser/browser_process.h ('k') | chrome/browser/browser_process_impl.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // When each service is created, we set a flag indicating this. At this point, 5 // When each service is created, we set a flag indicating this. At this point,
6 // the service initialization could fail or succeed. This allows us to remember 6 // the service initialization could fail or succeed. This allows us to remember
7 // if we tried to create a service, and not try creating it over and over if 7 // if we tried to create a service, and not try creating it over and over if
8 // the creation failed. 8 // the creation failed.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 if (!created_devtools_manager_) 118 if (!created_devtools_manager_)
119 CreateDevToolsManager(); 119 CreateDevToolsManager();
120 return devtools_manager_.get(); 120 return devtools_manager_.get();
121 } 121 }
122 122
123 virtual Clipboard* clipboard() { 123 virtual Clipboard* clipboard() {
124 DCHECK(CalledOnValidThread()); 124 DCHECK(CalledOnValidThread());
125 return clipboard_.get(); 125 return clipboard_.get();
126 } 126 }
127 127
128 #if defined(OS_WIN)
129 virtual NotificationUIManager* notification_ui_manager() {
130 DCHECK(CalledOnValidThread());
131 if (!created_notification_ui_manager_)
132 CreateNotificationUIManager();
133 return notification_ui_manager_.get();
134 }
135 #endif
136
128 virtual IconManager* icon_manager() { 137 virtual IconManager* icon_manager() {
129 DCHECK(CalledOnValidThread()); 138 DCHECK(CalledOnValidThread());
130 if (!created_icon_manager_) 139 if (!created_icon_manager_)
131 CreateIconManager(); 140 CreateIconManager();
132 return icon_manager_.get(); 141 return icon_manager_.get();
133 } 142 }
134 143
135 virtual ThumbnailGenerator* GetThumbnailGenerator() { 144 virtual ThumbnailGenerator* GetThumbnailGenerator() {
136 return &thumbnail_generator_; 145 return &thumbnail_generator_;
137 } 146 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 void CreateProfileManager(); 221 void CreateProfileManager();
213 void CreateWebDataService(); 222 void CreateWebDataService();
214 void CreateLocalState(); 223 void CreateLocalState();
215 void CreateViewedPageTracker(); 224 void CreateViewedPageTracker();
216 void CreateIconManager(); 225 void CreateIconManager();
217 void CreateDebuggerWrapper(int port); 226 void CreateDebuggerWrapper(int port);
218 void CreateDevToolsManager(); 227 void CreateDevToolsManager();
219 void CreateGoogleURLTracker(); 228 void CreateGoogleURLTracker();
220 229
221 #if defined(OS_WIN) 230 #if defined(OS_WIN)
231 void CreateNotificationUIManager();
232 #endif
233
234 #if defined(OS_WIN)
222 void InitBrokerServices(sandbox::BrokerServices* broker_services); 235 void InitBrokerServices(sandbox::BrokerServices* broker_services);
223 #endif // defined(OS_WIN) 236 #endif // defined(OS_WIN)
224 237
225 bool created_resource_dispatcher_host_; 238 bool created_resource_dispatcher_host_;
226 scoped_ptr<ResourceDispatcherHost> resource_dispatcher_host_; 239 scoped_ptr<ResourceDispatcherHost> resource_dispatcher_host_;
227 240
228 bool created_metrics_service_; 241 bool created_metrics_service_;
229 scoped_ptr<MetricsService> metrics_service_; 242 scoped_ptr<MetricsService> metrics_service_;
230 243
231 bool created_io_thread_; 244 bool created_io_thread_;
(...skipping 24 matching lines...) Expand all
256 scoped_ptr<IconManager> icon_manager_; 269 scoped_ptr<IconManager> icon_manager_;
257 270
258 bool created_debugger_wrapper_; 271 bool created_debugger_wrapper_;
259 scoped_refptr<DebuggerWrapper> debugger_wrapper_; 272 scoped_refptr<DebuggerWrapper> debugger_wrapper_;
260 273
261 bool created_devtools_manager_; 274 bool created_devtools_manager_;
262 scoped_refptr<DevToolsManager> devtools_manager_; 275 scoped_refptr<DevToolsManager> devtools_manager_;
263 276
264 scoped_ptr<Clipboard> clipboard_; 277 scoped_ptr<Clipboard> clipboard_;
265 278
279 #if defined(OS_WIN)
280 // Manager for desktop notification UI.
281 bool created_notification_ui_manager_;
282 scoped_ptr<NotificationUIManager> notification_ui_manager_;
283 #endif
284
266 scoped_ptr<AutomationProviderList> automation_provider_list_; 285 scoped_ptr<AutomationProviderList> automation_provider_list_;
267 286
268 scoped_ptr<GoogleURLTracker> google_url_tracker_; 287 scoped_ptr<GoogleURLTracker> google_url_tracker_;
269 288
270 scoped_ptr<NotificationService> main_notification_service_; 289 scoped_ptr<NotificationService> main_notification_service_;
271 290
272 unsigned int module_ref_count_; 291 unsigned int module_ref_count_;
273 292
274 // Ensures that all the print jobs are finished before closing the browser. 293 // Ensures that all the print jobs are finished before closing the browser.
275 scoped_ptr<printing::PrintJobManager> print_job_manager_; 294 scoped_ptr<printing::PrintJobManager> print_job_manager_;
(...skipping 15 matching lines...) Expand all
291 // Runs on the file thread and stats the inspector's directory, filling in 310 // Runs on the file thread and stats the inspector's directory, filling in
292 // have_inspector_files_ with the result. 311 // have_inspector_files_ with the result.
293 void DoInspectorFilesCheck(); 312 void DoInspectorFilesCheck();
294 // Our best estimate about the existence of the inspector directory. 313 // Our best estimate about the existence of the inspector directory.
295 bool have_inspector_files_; 314 bool have_inspector_files_;
296 315
297 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 316 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
298 }; 317 };
299 318
300 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 319 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process.h ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698