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

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

Issue 11689004: Move PromoResourceService from Profile to BrowserProcessImpl/local_state(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android x 4 Created 7 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 | Annotate | Revision Log
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_
11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
12 12
13 #include <string> 13 #include <string>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/debug/stack_trace.h" 16 #include "base/debug/stack_trace.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/prefs/public/pref_change_registrar.h" 19 #include "base/prefs/public/pref_change_registrar.h"
20 #include "base/threading/non_thread_safe.h" 20 #include "base/threading/non_thread_safe.h"
21 #include "base/timer.h" 21 #include "base/timer.h"
22 #include "chrome/browser/browser_process.h" 22 #include "chrome/browser/browser_process.h"
23 23
24 class ChromeNetLog; 24 class ChromeNetLog;
25 class ChromeResourceDispatcherHostDelegate; 25 class ChromeResourceDispatcherHostDelegate;
26 class CommandLine; 26 class CommandLine;
27 class RemoteDebuggingServer; 27 class RemoteDebuggingServer;
28 class PrefServiceSimple; 28 class PrefServiceSimple;
29 class PromoResourceService;
29 30
30 #if defined(ENABLE_PLUGIN_INSTALLATION) 31 #if defined(ENABLE_PLUGIN_INSTALLATION)
31 class PluginsResourceService; 32 class PluginsResourceService;
32 #endif 33 #endif
33 34
34 namespace base { 35 namespace base {
35 class SequencedTaskRunner; 36 class SequencedTaskRunner;
36 } 37 }
37 38
38 namespace policy { 39 namespace policy {
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_; 272 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_;
272 #else 273 #else
273 scoped_ptr<ComponentUpdateService> component_updater_; 274 scoped_ptr<ComponentUpdateService> component_updater_;
274 275
275 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; 276 scoped_refptr<CRLSetFetcher> crl_set_fetcher_;
276 #endif 277 #endif
277 278
278 #if defined(ENABLE_PLUGIN_INSTALLATION) 279 #if defined(ENABLE_PLUGIN_INSTALLATION)
279 scoped_refptr<PluginsResourceService> plugins_resource_service_; 280 scoped_refptr<PluginsResourceService> plugins_resource_service_;
280 #endif 281 #endif
282 scoped_refptr<PromoResourceService> promo_resource_service_;
jam 2013/01/02 15:59:00 nit: in general, it's more readable if all the non
Dan Beam 2013/01/02 22:27:51 Done.
281 283
282 #if defined(OS_WIN) && defined(USE_AURA) 284 #if defined(OS_WIN) && defined(USE_AURA)
283 void PerformInitForWindowsAura(const CommandLine& command_line); 285 void PerformInitForWindowsAura(const CommandLine& command_line);
284 286
285 // Hosts the channel for the Windows 8 metro viewer process which runs in 287 // Hosts the channel for the Windows 8 metro viewer process which runs in
286 // the ASH environment. 288 // the ASH environment.
287 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_; 289 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_;
288 #endif 290 #endif
289 291
290 // TODO(eroman): Remove this when done debugging 113031. This tracks 292 // TODO(eroman): Remove this when done debugging 113031. This tracks
291 // the callstack which released the final module reference count. 293 // the callstack which released the final module reference count.
292 base::debug::StackTrace release_last_reference_callstack_; 294 base::debug::StackTrace release_last_reference_callstack_;
293 295
294 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 296 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
295 }; 297 };
296 298
297 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 299 #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/browser_process_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698