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

Side by Side Diff: chrome/browser/extensions/extension_web_socket_proxy_private_api.h

Issue 8362027: websocket-to-TCP proxy: observe value of listening port in right place. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DLOG Created 9 years, 2 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_SOCKET_PROXY_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_SOCKET_PROXY_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_SOCKET_PROXY_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_SOCKET_PROXY_PRIVATE_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/timer.h" 9 #include "base/timer.h"
10 #include "chrome/browser/extensions/extension_function.h" 10 #include "chrome/browser/extensions/extension_function.h"
(...skipping 17 matching lines...) Expand all
28 const content::NotificationDetails& details) OVERRIDE; 28 const content::NotificationDetails& details) OVERRIDE;
29 29
30 // Whether already finalized. 30 // Whether already finalized.
31 bool is_finalized_; 31 bool is_finalized_;
32 32
33 // Used to signal timeout (when waiting for proxy initial launch). 33 // Used to signal timeout (when waiting for proxy initial launch).
34 base::OneShotTimer<WebSocketProxyPrivate> timer_; 34 base::OneShotTimer<WebSocketProxyPrivate> timer_;
35 35
36 content::NotificationRegistrar registrar_; 36 content::NotificationRegistrar registrar_;
37 37
38 // Proxy listens incoming websocket connection on this port. 38 // Proxy accepts websocket connections on this port.
39 int listening_port_; 39 int listening_port_;
40 }; 40 };
41 41
42 class WebSocketProxyPrivateGetPassportForTCPFunction 42 class WebSocketProxyPrivateGetPassportForTCPFunction
43 : public WebSocketProxyPrivate { 43 : public WebSocketProxyPrivate {
44 public: 44 public:
45 WebSocketProxyPrivateGetPassportForTCPFunction(); 45 WebSocketProxyPrivateGetPassportForTCPFunction();
46 46
47 private: 47 private:
48 // ExtensionFunction implementation. 48 // ExtensionFunction implementation.
(...skipping 16 matching lines...) Expand all
65 // Finalizes async operation. 65 // Finalizes async operation.
66 virtual void Finalize() OVERRIDE; 66 virtual void Finalize() OVERRIDE;
67 67
68 // Query component of resulting URL. 68 // Query component of resulting URL.
69 std::string query_; 69 std::string query_;
70 70
71 DECLARE_EXTENSION_FUNCTION_NAME("webSocketProxyPrivate.getURLForTCP") 71 DECLARE_EXTENSION_FUNCTION_NAME("webSocketProxyPrivate.getURLForTCP")
72 }; 72 };
73 73
74 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_SOCKET_PROXY_PRIVATE_API_H_ 74 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_SOCKET_PROXY_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698