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

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

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 years, 11 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_main.cc ('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 10 matching lines...) Expand all
21 #include "chrome/browser/automation/automation_provider_list.h" 21 #include "chrome/browser/automation/automation_provider_list.h"
22 #include "chrome/browser/browser_process.h" 22 #include "chrome/browser/browser_process.h"
23 #include "sandbox/src/sandbox.h" 23 #include "sandbox/src/sandbox.h"
24 24
25 class CommandLine; 25 class CommandLine;
26 class NotificationService; 26 class NotificationService;
27 27
28 // Real implementation of BrowserProcess that creates and returns the services. 28 // Real implementation of BrowserProcess that creates and returns the services.
29 class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe { 29 class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe {
30 public: 30 public:
31 BrowserProcessImpl(CommandLine& command_line); 31 BrowserProcessImpl(const CommandLine& command_line);
32 virtual ~BrowserProcessImpl(); 32 virtual ~BrowserProcessImpl();
33 33
34 virtual void EndSession(); 34 virtual void EndSession();
35 35
36 virtual ResourceDispatcherHost* resource_dispatcher_host() { 36 virtual ResourceDispatcherHost* resource_dispatcher_host() {
37 DCHECK(CalledOnValidThread()); 37 DCHECK(CalledOnValidThread());
38 if (!created_resource_dispatcher_host_) 38 if (!created_resource_dispatcher_host_)
39 CreateResourceDispatcherHost(); 39 CreateResourceDispatcherHost();
40 return resource_dispatcher_host_.get(); 40 return resource_dispatcher_host_.get();
41 } 41 }
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 bool using_new_frames_; 242 bool using_new_frames_;
243 243
244 // An event that notifies when we are shutting-down. 244 // An event that notifies when we are shutting-down.
245 base::WaitableEvent* shutdown_event_; 245 base::WaitableEvent* shutdown_event_;
246 246
247 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcessImpl); 247 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcessImpl);
248 }; 248 };
249 249
250 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__ 250 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__
251 251
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698