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

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: Merged ToT and addressed comments. 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
« no previous file with comments | « chrome/browser/browser_process.h ('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) 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 virtual printing::PrintPreviewTabController* print_preview_tab_controller(); 79 virtual printing::PrintPreviewTabController* print_preview_tab_controller();
79 virtual GoogleURLTracker* google_url_tracker(); 80 virtual GoogleURLTracker* google_url_tracker();
80 virtual IntranetRedirectDetector* intranet_redirect_detector(); 81 virtual IntranetRedirectDetector* intranet_redirect_detector();
81 virtual const std::string& GetApplicationLocale(); 82 virtual const std::string& GetApplicationLocale();
82 virtual void SetApplicationLocale(const std::string& locale); 83 virtual void SetApplicationLocale(const std::string& locale);
83 virtual DownloadStatusUpdater* download_status_updater(); 84 virtual DownloadStatusUpdater* download_status_updater();
84 virtual base::WaitableEvent* shutdown_event(); 85 virtual base::WaitableEvent* shutdown_event();
85 virtual TabCloseableStateWatcher* tab_closeable_state_watcher(); 86 virtual TabCloseableStateWatcher* tab_closeable_state_watcher();
86 virtual safe_browsing::ClientSideDetectionService* 87 virtual safe_browsing::ClientSideDetectionService*
87 safe_browsing_detection_service(); 88 safe_browsing_detection_service();
89 virtual bool plugin_finder_disabled() const;
88 virtual void CheckForInspectorFiles(); 90 virtual void CheckForInspectorFiles();
89 91
90 // NotificationObserver methods 92 // NotificationObserver methods
91 virtual void Observe(NotificationType type, 93 virtual void Observe(NotificationType type,
92 const NotificationSource& source, 94 const NotificationSource& source,
93 const NotificationDetails& details); 95 const NotificationDetails& details);
94 96
95 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 97 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
96 virtual void StartAutoupdateTimer(); 98 virtual void StartAutoupdateTimer();
97 #endif 99 #endif
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // Ensures that the observers of plugin/print disable/enable state 246 // Ensures that the observers of plugin/print disable/enable state
245 // notifications are properly added and removed. 247 // notifications are properly added and removed.
246 PrefChangeRegistrar pref_change_registrar_; 248 PrefChangeRegistrar pref_change_registrar_;
247 249
248 // Lives here so can safely log events on shutdown. 250 // Lives here so can safely log events on shutdown.
249 scoped_ptr<ChromeNetLog> net_log_; 251 scoped_ptr<ChromeNetLog> net_log_;
250 252
251 NotificationRegistrar notification_registrar_; 253 NotificationRegistrar notification_registrar_;
252 scoped_refptr<PluginDataRemover> plugin_data_remover_; 254 scoped_refptr<PluginDataRemover> plugin_data_remover_;
253 255
256 // Monitors the state of the 'DisablePluginFinder' policy.
257 BooleanPrefMember plugin_finder_disabled_pref_;
258
254 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 259 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
255 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; 260 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_;
256 261
257 // Gets called by autoupdate timer to see if browser needs restart and can be 262 // Gets called by autoupdate timer to see if browser needs restart and can be
258 // restarted, and if that's the case, restarts the browser. 263 // restarted, and if that's the case, restarts the browser.
259 void OnAutoupdateTimer(); 264 void OnAutoupdateTimer();
260 bool CanAutorestartForUpdate() const; 265 bool CanAutorestartForUpdate() const;
261 void RestartPersistentInstance(); 266 void RestartPersistentInstance();
262 #endif // defined(OS_WIN) || defined(OS_LINUX) 267 #endif // defined(OS_WIN) || defined(OS_LINUX)
263 268
264 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 269 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
265 }; 270 };
266 271
267 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 272 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process.h ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698