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

Side by Side Diff: Source/modules/websockets/WebSocket.h

Issue 334873002: [WebSocket] Make subprotocol and extensions live in WebSocket (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // ActiveDOMObject functions. 109 // ActiveDOMObject functions.
110 virtual void contextDestroyed() OVERRIDE; 110 virtual void contextDestroyed() OVERRIDE;
111 // Prevent this instance from being collected while it's not in CLOSED 111 // Prevent this instance from being collected while it's not in CLOSED
112 // state. 112 // state.
113 virtual bool hasPendingActivity() const OVERRIDE; 113 virtual bool hasPendingActivity() const OVERRIDE;
114 virtual void suspend() OVERRIDE; 114 virtual void suspend() OVERRIDE;
115 virtual void resume() OVERRIDE; 115 virtual void resume() OVERRIDE;
116 virtual void stop() OVERRIDE; 116 virtual void stop() OVERRIDE;
117 117
118 // WebSocketChannelClient functions. 118 // WebSocketChannelClient functions.
119 virtual void didConnect() OVERRIDE; 119 virtual void didConnect(const String& subprotocol, const String& extensions) OVERRIDE;
120 virtual void didReceiveMessage(const String& message) OVERRIDE; 120 virtual void didReceiveMessage(const String& message) OVERRIDE;
121 virtual void didReceiveBinaryData(PassOwnPtr<Vector<char> >) OVERRIDE; 121 virtual void didReceiveBinaryData(PassOwnPtr<Vector<char> >) OVERRIDE;
122 virtual void didReceiveMessageError() OVERRIDE; 122 virtual void didReceiveMessageError() OVERRIDE;
123 virtual void didUpdateBufferedAmount(unsigned long bufferedAmount) OVERRIDE; 123 virtual void didUpdateBufferedAmount(unsigned long bufferedAmount) OVERRIDE;
124 virtual void didStartClosingHandshake() OVERRIDE; 124 virtual void didStartClosingHandshake() OVERRIDE;
125 virtual void didClose(unsigned long unhandledBufferedAmount, ClosingHandshak eCompletionStatus, unsigned short code, const String& reason) OVERRIDE; 125 virtual void didClose(unsigned long unhandledBufferedAmount, ClosingHandshak eCompletionStatus, unsigned short code, const String& reason) OVERRIDE;
126 126
127 virtual void trace(Visitor*) OVERRIDE; 127 virtual void trace(Visitor*) OVERRIDE;
128 128
129 static bool isValidSubprotocolString(const String&); 129 static bool isValidSubprotocolString(const String&);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // The subprotocol the server selected. 226 // The subprotocol the server selected.
227 String m_subprotocol; 227 String m_subprotocol;
228 String m_extensions; 228 String m_extensions;
229 229
230 RefPtrWillBeMember<EventQueue> m_eventQueue; 230 RefPtrWillBeMember<EventQueue> m_eventQueue;
231 }; 231 };
232 232
233 } // namespace WebCore 233 } // namespace WebCore
234 234
235 #endif // WebSocket_h 235 #endif // WebSocket_h
OLDNEW
« no previous file with comments | « Source/modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp ('k') | Source/modules/websockets/WebSocket.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698