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

Side by Side Diff: chrome/browser/browser_process.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_main.cc ('k') | chrome/browser/browser_process_impl.h » ('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 // This interface is for managing the global services of the application. Each 5 // This interface is for managing the global services of the application. Each
6 // service is lazily created when requested the first time. The service getters 6 // service is lazily created when requested the first time. The service getters
7 // will return NULL if the service is not available, so callers must check for 7 // will return NULL if the service is not available, so callers must check for
8 // this condition. 8 // this condition.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class Thread; 43 class Thread;
44 class WaitableEvent; 44 class WaitableEvent;
45 } 45 }
46 46
47 namespace printing { 47 namespace printing {
48 class PrintJobManager; 48 class PrintJobManager;
49 class PrintPreviewTabController; 49 class PrintPreviewTabController;
50 } 50 }
51 51
52 namespace policy { 52 namespace policy {
53 class ConfigurationPolicyProviderKeeper; 53 class BrowserPolicyContext;
54 } 54 }
55 55
56 namespace ui { 56 namespace ui {
57 class Clipboard; 57 class Clipboard;
58 } 58 }
59 59
60 // NOT THREAD SAFE, call only from the main thread. 60 // NOT THREAD SAFE, call only from the main thread.
61 // These functions shouldn't return NULL unless otherwise noted. 61 // These functions shouldn't return NULL unless otherwise noted.
62 class BrowserProcess { 62 class BrowserProcess {
63 public: 63 public:
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 #if defined(USE_X11) 108 #if defined(USE_X11)
109 // Returns the thread that is used to process UI requests in cases where 109 // Returns the thread that is used to process UI requests in cases where
110 // we can't route the request to the UI thread. Note that this thread 110 // we can't route the request to the UI thread. Note that this thread
111 // should only be used by the IO thread and this method is only safe to call 111 // should only be used by the IO thread and this method is only safe to call
112 // from the UI thread so, if you've ended up here, something has gone wrong. 112 // from the UI thread so, if you've ended up here, something has gone wrong.
113 // This method is only included for uniformity. 113 // This method is only included for uniformity.
114 virtual base::Thread* background_x11_thread() = 0; 114 virtual base::Thread* background_x11_thread() = 0;
115 #endif 115 #endif
116 116
117 virtual policy::ConfigurationPolicyProviderKeeper* 117 virtual policy::BrowserPolicyContext* browser_policy_context() = 0;
118 configuration_policy_provider_keeper() = 0;
119 118
120 virtual IconManager* icon_manager() = 0; 119 virtual IconManager* icon_manager() = 0;
121 120
122 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0; 121 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0;
123 122
124 virtual AutomationProviderList* InitAutomationProviderList() = 0; 123 virtual AutomationProviderList* InitAutomationProviderList() = 0;
125 124
126 virtual void InitDevToolsHttpProtocolHandler( 125 virtual void InitDevToolsHttpProtocolHandler(
127 int port, 126 int port,
128 const std::string& frontend_url) = 0; 127 const std::string& frontend_url) = 0;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 204
206 // Used for testing plugin data removal at shutdown. 205 // Used for testing plugin data removal at shutdown.
207 std::string plugin_data_remover_mime_type_; 206 std::string plugin_data_remover_mime_type_;
208 207
209 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 208 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
210 }; 209 };
211 210
212 extern BrowserProcess* g_browser_process; 211 extern BrowserProcess* g_browser_process;
213 212
214 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 213 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698