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

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

Issue 10916235: Record policy usage statistics every 24 hours. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated comment Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 13 matching lines...) Expand all
24 #include "content/public/browser/notification_observer.h" 24 #include "content/public/browser/notification_observer.h"
25 25
26 class ChromeNetLog; 26 class ChromeNetLog;
27 class ChromeResourceDispatcherHostDelegate; 27 class ChromeResourceDispatcherHostDelegate;
28 class CommandLine; 28 class CommandLine;
29 class RemoteDebuggingServer; 29 class RemoteDebuggingServer;
30 30
31 namespace policy { 31 namespace policy {
32 class BrowserPolicyConnector; 32 class BrowserPolicyConnector;
33 class PolicyService; 33 class PolicyService;
34 class PolicyStatisticsCollector;
34 }; 35 };
35 36
36 // Real implementation of BrowserProcess that creates and returns the services. 37 // Real implementation of BrowserProcess that creates and returns the services.
37 class BrowserProcessImpl : public BrowserProcess, 38 class BrowserProcessImpl : public BrowserProcess,
38 public base::NonThreadSafe, 39 public base::NonThreadSafe,
39 public content::NotificationObserver { 40 public content::NotificationObserver {
40 public: 41 public:
41 explicit BrowserProcessImpl(const CommandLine& command_line); 42 explicit BrowserProcessImpl(const CommandLine& command_line);
42 virtual ~BrowserProcessImpl(); 43 virtual ~BrowserProcessImpl();
43 44
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 156
156 // Must be destroyed after |local_state_|. 157 // Must be destroyed after |local_state_|.
157 scoped_ptr<policy::PolicyService> policy_service_; 158 scoped_ptr<policy::PolicyService> policy_service_;
158 159
159 bool created_profile_manager_; 160 bool created_profile_manager_;
160 scoped_ptr<ProfileManager> profile_manager_; 161 scoped_ptr<ProfileManager> profile_manager_;
161 162
162 bool created_local_state_; 163 bool created_local_state_;
163 scoped_ptr<PrefService> local_state_; 164 scoped_ptr<PrefService> local_state_;
164 165
166 // Must be destroyed before |local_state_| and |policy_statistics_collector_|.
Mattias Nissler (ping if slow) 2012/09/12 13:06:27 Doesn't make sense.
167 // Note that currently this is enforced by StartTearDown.
168 scoped_ptr<policy::PolicyStatisticsCollector> policy_statistics_collector_;
Joao da Silva 2012/09/12 13:29:38 Why doesn't this hang off the BrowserPolicyConnect
169
165 bool created_icon_manager_; 170 bool created_icon_manager_;
166 scoped_ptr<IconManager> icon_manager_; 171 scoped_ptr<IconManager> icon_manager_;
167 172
168 scoped_refptr<extensions::EventRouterForwarder> 173 scoped_refptr<extensions::EventRouterForwarder>
169 extension_event_router_forwarder_; 174 extension_event_router_forwarder_;
170 175
171 #if !defined(OS_ANDROID) 176 #if !defined(OS_ANDROID)
172 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_; 177 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_;
173 #endif 178 #endif
174 179
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 #endif 259 #endif
255 260
256 // TODO(eroman): Remove this when done debugging 113031. This tracks 261 // TODO(eroman): Remove this when done debugging 113031. This tracks
257 // the callstack which released the final module reference count. 262 // the callstack which released the final module reference count.
258 base::debug::StackTrace release_last_reference_callstack_; 263 base::debug::StackTrace release_last_reference_callstack_;
259 264
260 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 265 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
261 }; 266 };
262 267
263 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 268 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_process_impl.cc » ('j') | chrome/browser/policy/policy_statistics_collector.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698