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

Side by Side Diff: chrome/browser/chromeos/web_socket_proxy_controller.h

Issue 21115004: extensions: Remove chrome.webSocketProxyPrivate API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_CONTROLLER_H_
7
8 #include <string>
9 #include <vector>
10
11 namespace chromeos {
12
13 // Controls webproxy to TCP service.
14 class WebSocketProxyController {
15 public:
16 enum ConnectionFlags {
17 PLAIN_TCP = 0,
18 TLS_OVER_TCP = 1 << 0
19 };
20
21 // Can be called on any thread. Subsequent calls are cheap and do nothing.
22 static void Initiate();
23
24 // All methods can be called on any thread.
25 static void Shutdown();
26 static bool IsInitiated();
27 static int GetPort(); // Returns port listening websocket connections.
28 };
29
30 } // namespace chromeos
31
32 #endif // CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/web_socket_proxy.cc ('k') | chrome/browser/chromeos/web_socket_proxy_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698