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

Unified Diff: net/websockets/websocket_job.h

Issue 7047003: Add --enable-websocket-over-spdy command-line flag (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase (remove TODO) Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/websockets/websocket_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_job.h
diff --git a/net/websockets/websocket_job.h b/net/websockets/websocket_job.h
index f1dcdc8052f49b6039b1340e42cee675c59f984b..1584fd670dee24e39c8992bf4b513466d562c25d 100644
--- a/net/websockets/websocket_job.h
+++ b/net/websockets/websocket_job.h
@@ -46,6 +46,10 @@ class NET_API WebSocketJob
static void EnsureInit();
+ // Enable or Disable WebSocket over SPDY feature.
+ // This function is intended to be called before I/O thread starts.
+ static void set_websocket_over_spdy_enabled(bool enabled);
+
State state() const { return state_; }
virtual void Connect();
virtual bool SendData(const char* data, int len);
@@ -94,6 +98,8 @@ class NET_API WebSocketJob
void SendPending();
+ static bool websocket_over_spdy_enabled_;
+
SocketStream::Delegate* delegate_;
State state_;
bool waiting_;
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/websockets/websocket_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698