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

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

Issue 6475011: Implemented policy to disable plugin finder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased on ToT. Created 9 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 12 #pragma once
13 13
14 #include <string> 14 #include <string>
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/message_loop.h" 17 #include "base/message_loop.h"
18 #include "base/scoped_ptr.h" 18 #include "base/scoped_ptr.h"
19 #include "base/threading/non_thread_safe.h" 19 #include "base/threading/non_thread_safe.h"
20 #include "base/timer.h" 20 #include "base/timer.h"
21 #include "chrome/browser/browser_process.h" 21 #include "chrome/browser/browser_process.h"
22 #include "chrome/browser/download/download_status_updater.h" 22 #include "chrome/browser/download/download_status_updater.h"
23 #include "chrome/browser/prefs/pref_change_registrar.h" 23 #include "chrome/browser/prefs/pref_change_registrar.h"
24 #include "chrome/browser/prefs/pref_member.h"
24 #include "chrome/browser/tab_contents/thumbnail_generator.h" 25 #include "chrome/browser/tab_contents/thumbnail_generator.h"
25 #include "chrome/common/notification_observer.h" 26 #include "chrome/common/notification_observer.h"
26 #include "chrome/common/notification_registrar.h" 27 #include "chrome/common/notification_registrar.h"
27 #include "ipc/ipc_message.h" 28 #include "ipc/ipc_message.h"
28 29
29 class ChromeNetLog; 30 class ChromeNetLog;
30 class CommandLine; 31 class CommandLine;
31 class DevToolsHttpProtocolHandler; 32 class DevToolsHttpProtocolHandler;
32 class DevToolsProtocolHandler; 33 class DevToolsProtocolHandler;
33 class FilePath; 34 class FilePath;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual printing::PrintPreviewTabController* print_preview_tab_controller(); 80 virtual printing::PrintPreviewTabController* print_preview_tab_controller();
80 virtual GoogleURLTracker* google_url_tracker(); 81 virtual GoogleURLTracker* google_url_tracker();
81 virtual IntranetRedirectDetector* intranet_redirect_detector(); 82 virtual IntranetRedirectDetector* intranet_redirect_detector();
82 virtual const std::string& GetApplicationLocale(); 83 virtual const std::string& GetApplicationLocale();
83 virtual void SetApplicationLocale(const std::string& locale); 84 virtual void SetApplicationLocale(const std::string& locale);
84 virtual DownloadStatusUpdater* download_status_updater(); 85 virtual DownloadStatusUpdater* download_status_updater();
85 virtual base::WaitableEvent* shutdown_event(); 86 virtual base::WaitableEvent* shutdown_event();
86 virtual TabCloseableStateWatcher* tab_closeable_state_watcher(); 87 virtual TabCloseableStateWatcher* tab_closeable_state_watcher();
87 virtual safe_browsing::ClientSideDetectionService* 88 virtual safe_browsing::ClientSideDetectionService*
88 safe_browsing_detection_service(); 89 safe_browsing_detection_service();
90 virtual bool disable_plugin_finder_pref() const;
89 virtual void CheckForInspectorFiles(); 91 virtual void CheckForInspectorFiles();
90 92
91 // NotificationObserver methods 93 // NotificationObserver methods
92 virtual void Observe(NotificationType type, 94 virtual void Observe(NotificationType type,
93 const NotificationSource& source, 95 const NotificationSource& source,
94 const NotificationDetails& details); 96 const NotificationDetails& details);
95 97
96 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 98 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
97 virtual void StartAutoupdateTimer(); 99 virtual void StartAutoupdateTimer();
98 #endif 100 #endif
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // Ensures that the observers of plugin/print disable/enable state 251 // Ensures that the observers of plugin/print disable/enable state
250 // notifications are properly added and removed. 252 // notifications are properly added and removed.
251 PrefChangeRegistrar pref_change_registrar_; 253 PrefChangeRegistrar pref_change_registrar_;
252 254
253 // Lives here so can safely log events on shutdown. 255 // Lives here so can safely log events on shutdown.
254 scoped_ptr<ChromeNetLog> net_log_; 256 scoped_ptr<ChromeNetLog> net_log_;
255 257
256 NotificationRegistrar notification_registrar_; 258 NotificationRegistrar notification_registrar_;
257 scoped_refptr<PluginDataRemover> plugin_data_remover_; 259 scoped_refptr<PluginDataRemover> plugin_data_remover_;
258 260
261 // Monitors the disable plugin finder policy state.
Bernhard Bauer 2011/02/24 10:37:07 Nit: this comment is a bit hard to parse. Maybe "M
pastarmovj 2011/02/24 16:02:20 Done.
262 BooleanPrefMember disable_plugin_finder_pref_;
263
259 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 264 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
260 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; 265 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_;
261 266
262 // Gets called by autoupdate timer to see if browser needs restart and can be 267 // Gets called by autoupdate timer to see if browser needs restart and can be
263 // restarted, and if that's the case, restarts the browser. 268 // restarted, and if that's the case, restarts the browser.
264 void OnAutoupdateTimer(); 269 void OnAutoupdateTimer();
265 bool CanAutorestartForUpdate() const; 270 bool CanAutorestartForUpdate() const;
266 void RestartPersistentInstance(); 271 void RestartPersistentInstance();
267 #endif // defined(OS_WIN) || defined(OS_LINUX) 272 #endif // defined(OS_WIN) || defined(OS_LINUX)
268 273
269 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 274 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
270 }; 275 };
271 276
272 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 277 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698