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

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

Issue 6801008: Websocket to TCP proxy running in a separate thread (only on ChromeOS). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: g Created 9 years, 8 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 // 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // we can't route the request to the UI thread. Note that this thread 137 // we can't route the request to the UI thread. Note that this thread
138 // should only be used by the IO thread and this method is only safe to call 138 // should only be used by the IO thread and this method is only safe to call
139 // from the UI thread so, if you've ended up here, something has gone wrong. 139 // from the UI thread so, if you've ended up here, something has gone wrong.
140 // This method is only included for uniformity. 140 // This method is only included for uniformity.
141 virtual base::Thread* background_x11_thread() = 0; 141 virtual base::Thread* background_x11_thread() = 0;
142 #endif 142 #endif
143 143
144 // Returns the thread that is used for health check of all browser threads. 144 // Returns the thread that is used for health check of all browser threads.
145 virtual WatchDogThread* watchdog_thread() = 0; 145 virtual WatchDogThread* watchdog_thread() = 0;
146 146
147 #if defined(OS_CHROMEOS)
148 // Returns thread for websocket to TCP proxy.
149 // TODO(dilmah): remove this thread. Instead provide this functionality via
150 // hooks into websocket bridge layer.
151 virtual base::Thread* webproxy_thread() = 0;
152 #endif
153
147 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; 154 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0;
148 155
149 virtual IconManager* icon_manager() = 0; 156 virtual IconManager* icon_manager() = 0;
150 157
151 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0; 158 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0;
152 159
153 virtual AutomationProviderList* InitAutomationProviderList() = 0; 160 virtual AutomationProviderList* InitAutomationProviderList() = 0;
154 161
155 virtual void InitDevToolsHttpProtocolHandler( 162 virtual void InitDevToolsHttpProtocolHandler(
156 const std::string& ip, 163 const std::string& ip,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 239
233 // Used for testing plugin data removal at shutdown. 240 // Used for testing plugin data removal at shutdown.
234 std::string plugin_data_remover_mime_type_; 241 std::string plugin_data_remover_mime_type_;
235 242
236 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 243 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
237 }; 244 };
238 245
239 extern BrowserProcess* g_browser_process; 246 extern BrowserProcess* g_browser_process;
240 247
241 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 248 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698