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

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

Issue 13071002: Turn on component updater on chromeos, only for the pnacl component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: filepath Created 7 years, 9 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_
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 safe_browsing_detection_service() OVERRIDE; 125 safe_browsing_detection_service() OVERRIDE;
126 126
127 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 127 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
128 virtual void StartAutoupdateTimer() OVERRIDE; 128 virtual void StartAutoupdateTimer() OVERRIDE;
129 #endif 129 #endif
130 130
131 virtual ChromeNetLog* net_log() OVERRIDE; 131 virtual ChromeNetLog* net_log() OVERRIDE;
132 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; 132 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE;
133 virtual ComponentUpdateService* component_updater() OVERRIDE; 133 virtual ComponentUpdateService* component_updater() OVERRIDE;
134 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; 134 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE;
135 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE;
135 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; 136 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE;
136 virtual chrome::MediaFileSystemRegistry* 137 virtual chrome::MediaFileSystemRegistry*
137 media_file_system_registry() OVERRIDE; 138 media_file_system_registry() OVERRIDE;
138 virtual void PlatformSpecificCommandLineProcessing( 139 virtual void PlatformSpecificCommandLineProcessing(
139 const CommandLine& command_line) OVERRIDE; 140 const CommandLine& command_line) OVERRIDE;
140 141
141 static void RegisterPrefs(PrefRegistrySimple* registry); 142 static void RegisterPrefs(PrefRegistrySimple* registry);
142 143
143 private: 144 private:
144 void CreateMetricsService(); 145 void CreateMetricsService();
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // Gets called by autoupdate timer to see if browser needs restart and can be 280 // Gets called by autoupdate timer to see if browser needs restart and can be
280 // restarted, and if that's the case, restarts the browser. 281 // restarted, and if that's the case, restarts the browser.
281 void OnAutoupdateTimer(); 282 void OnAutoupdateTimer();
282 bool CanAutorestartForUpdate() const; 283 bool CanAutorestartForUpdate() const;
283 void RestartBackgroundInstance(); 284 void RestartBackgroundInstance();
284 #endif // defined(OS_WIN) || defined(OS_LINUX) && !defined(OS_CHROMEOS) 285 #endif // defined(OS_WIN) || defined(OS_LINUX) && !defined(OS_CHROMEOS)
285 286
286 #if defined(OS_CHROMEOS) 287 #if defined(OS_CHROMEOS)
287 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_; 288 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_;
288 #else 289 #else
289 scoped_ptr<ComponentUpdateService> component_updater_;
290
291 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; 290 scoped_refptr<CRLSetFetcher> crl_set_fetcher_;
292 #endif 291 #endif
292 // component updater is normally not used under ChromeOS due
293 // to concerns over integrity of data shared between profiles,
294 // but some users of component updater only install per-user.
295 scoped_ptr<ComponentUpdateService> component_updater_;
296 scoped_ptr<PnaclComponentInstaller> pnacl_component_installer_;
293 297
294 #if defined(ENABLE_PLUGIN_INSTALLATION) 298 #if defined(ENABLE_PLUGIN_INSTALLATION)
295 scoped_refptr<PluginsResourceService> plugins_resource_service_; 299 scoped_refptr<PluginsResourceService> plugins_resource_service_;
296 #endif 300 #endif
297 301
298 #if defined(OS_WIN) && defined(USE_AURA) 302 #if defined(OS_WIN) && defined(USE_AURA)
299 void PerformInitForWindowsAura(const CommandLine& command_line); 303 void PerformInitForWindowsAura(const CommandLine& command_line);
300 304
301 // Hosts the channel for the Windows 8 metro viewer process which runs in 305 // Hosts the channel for the Windows 8 metro viewer process which runs in
302 // the ASH environment. 306 // the ASH environment.
303 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_; 307 scoped_ptr<MetroViewerProcessHost> metro_viewer_process_host_;
304 #endif 308 #endif
305 309
306 #if defined(OS_MACOSX) 310 #if defined(OS_MACOSX)
307 // Hosts the IPC channel factory that App Shims connect to on Mac. 311 // Hosts the IPC channel factory that App Shims connect to on Mac.
308 scoped_ptr<AppShimHostManager> app_shim_host_manager_; 312 scoped_ptr<AppShimHostManager> app_shim_host_manager_;
309 #endif 313 #endif
310 314
311 // TODO(eroman): Remove this when done debugging 113031. This tracks 315 // TODO(eroman): Remove this when done debugging 113031. This tracks
312 // the callstack which released the final module reference count. 316 // the callstack which released the final module reference count.
313 base::debug::StackTrace release_last_reference_callstack_; 317 base::debug::StackTrace release_last_reference_callstack_;
314 318
315 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 319 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
316 }; 320 };
317 321
318 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 322 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698