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

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

Issue 6312121: Add initial device policy infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix race condition and tests. 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/threading/non_thread_safe.h" 19 #include "base/threading/non_thread_safe.h"
19 #include "base/timer.h" 20 #include "base/timer.h"
20 #include "base/scoped_ptr.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/tab_contents/thumbnail_generator.h" 24 #include "chrome/browser/tab_contents/thumbnail_generator.h"
25 #include "chrome/common/notification_observer.h" 25 #include "chrome/common/notification_observer.h"
26 #include "chrome/common/notification_registrar.h" 26 #include "chrome/common/notification_registrar.h"
27 #include "ipc/ipc_message.h" 27 #include "ipc/ipc_message.h"
28 28
29 class ChromeNetLog; 29 class ChromeNetLog;
30 class CommandLine; 30 class CommandLine;
(...skipping 24 matching lines...) Expand all
55 virtual base::Thread* cache_thread(); 55 virtual base::Thread* cache_thread();
56 #if defined(USE_X11) 56 #if defined(USE_X11)
57 virtual base::Thread* background_x11_thread(); 57 virtual base::Thread* background_x11_thread();
58 #endif 58 #endif
59 virtual ProfileManager* profile_manager(); 59 virtual ProfileManager* profile_manager();
60 virtual PrefService* local_state(); 60 virtual PrefService* local_state();
61 virtual DevToolsManager* devtools_manager(); 61 virtual DevToolsManager* devtools_manager();
62 virtual SidebarManager* sidebar_manager(); 62 virtual SidebarManager* sidebar_manager();
63 virtual ui::Clipboard* clipboard(); 63 virtual ui::Clipboard* clipboard();
64 virtual NotificationUIManager* notification_ui_manager(); 64 virtual NotificationUIManager* notification_ui_manager();
65 virtual policy::ConfigurationPolicyProviderKeeper* 65 virtual policy::BrowserPolicyContext* browser_policy_context();
66 configuration_policy_provider_keeper();
67 virtual IconManager* icon_manager(); 66 virtual IconManager* icon_manager();
68 virtual ThumbnailGenerator* GetThumbnailGenerator(); 67 virtual ThumbnailGenerator* GetThumbnailGenerator();
69 virtual AutomationProviderList* InitAutomationProviderList(); 68 virtual AutomationProviderList* InitAutomationProviderList();
70 virtual void InitDevToolsHttpProtocolHandler( 69 virtual void InitDevToolsHttpProtocolHandler(
71 int port, 70 int port,
72 const std::string& frontend_url); 71 const std::string& frontend_url);
73 virtual void InitDevToolsLegacyProtocolHandler(int port); 72 virtual void InitDevToolsLegacyProtocolHandler(int port);
74 virtual unsigned int AddRefModule(); 73 virtual unsigned int AddRefModule();
75 virtual unsigned int ReleaseModule(); 74 virtual unsigned int ReleaseModule();
76 virtual bool IsShuttingDown(); 75 virtual bool IsShuttingDown();
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 scoped_refptr<DevToolsHttpProtocolHandler> devtools_http_handler_; 177 scoped_refptr<DevToolsHttpProtocolHandler> devtools_http_handler_;
179 178
180 scoped_refptr<DevToolsProtocolHandler> devtools_legacy_handler_; 179 scoped_refptr<DevToolsProtocolHandler> devtools_legacy_handler_;
181 180
182 bool created_devtools_manager_; 181 bool created_devtools_manager_;
183 scoped_refptr<DevToolsManager> devtools_manager_; 182 scoped_refptr<DevToolsManager> devtools_manager_;
184 183
185 bool created_sidebar_manager_; 184 bool created_sidebar_manager_;
186 scoped_refptr<SidebarManager> sidebar_manager_; 185 scoped_refptr<SidebarManager> sidebar_manager_;
187 186
188 bool created_configuration_policy_provider_keeper_; 187 bool created_browser_policy_context_;
189 scoped_ptr<policy::ConfigurationPolicyProviderKeeper> 188 scoped_ptr<policy::BrowserPolicyContext> browser_policy_context_;
190 configuration_policy_provider_keeper_;
191 189
192 scoped_refptr<printing::PrintPreviewTabController> 190 scoped_refptr<printing::PrintPreviewTabController>
193 print_preview_tab_controller_; 191 print_preview_tab_controller_;
194 192
195 scoped_ptr<ui::Clipboard> clipboard_; 193 scoped_ptr<ui::Clipboard> clipboard_;
196 194
197 // Manager for desktop notification UI. 195 // Manager for desktop notification UI.
198 bool created_notification_ui_manager_; 196 bool created_notification_ui_manager_;
199 scoped_ptr<NotificationUIManager> notification_ui_manager_; 197 scoped_ptr<NotificationUIManager> notification_ui_manager_;
200 198
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // restarted, and if that's the case, restarts the browser. 255 // restarted, and if that's the case, restarts the browser.
258 void OnAutoupdateTimer(); 256 void OnAutoupdateTimer();
259 bool CanAutorestartForUpdate() const; 257 bool CanAutorestartForUpdate() const;
260 void RestartPersistentInstance(); 258 void RestartPersistentInstance();
261 #endif // defined(OS_WIN) || defined(OS_LINUX) 259 #endif // defined(OS_WIN) || defined(OS_LINUX)
262 260
263 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 261 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
264 }; 262 };
265 263
266 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 264 #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