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

Side by Side Diff: third_party/WebKit/Source/modules/websockets/DOMWebSocket.h

Issue 1461283002: [DO NOT COMMIT] mojo datapipe performance measurement Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // WebSocketChannelClient functions. 127 // WebSocketChannelClient functions.
128 void didConnect(const String& subprotocol, const String& extensions) overrid e; 128 void didConnect(const String& subprotocol, const String& extensions) overrid e;
129 void didReceiveTextMessage(const String& message) override; 129 void didReceiveTextMessage(const String& message) override;
130 void didReceiveBinaryMessage(PassOwnPtr<Vector<char>>) override; 130 void didReceiveBinaryMessage(PassOwnPtr<Vector<char>>) override;
131 void didError() override; 131 void didError() override;
132 void didConsumeBufferedAmount(uint64_t) override; 132 void didConsumeBufferedAmount(uint64_t) override;
133 void didStartClosingHandshake() override; 133 void didStartClosingHandshake() override;
134 void didClose(ClosingHandshakeCompletionStatus, unsigned short code, const S tring& reason) override; 134 void didClose(ClosingHandshakeCompletionStatus, unsigned short code, const S tring& reason) override;
135 135
136 ScriptPromise loaderTestTransmitChromiumIPC(ScriptState*, int, int, int);
137 ScriptPromise loaderTestTransmitMojo(ScriptState*, int, int, int);
138
136 DECLARE_VIRTUAL_TRACE(); 139 DECLARE_VIRTUAL_TRACE();
137 140
138 static bool isValidSubprotocolString(const String&); 141 static bool isValidSubprotocolString(const String&);
139 142
140 protected: 143 protected:
141 explicit DOMWebSocket(ExecutionContext*); 144 explicit DOMWebSocket(ExecutionContext*);
142 145
143 private: 146 private:
144 // FIXME: This should inherit blink::EventQueue. 147 // FIXME: This should inherit blink::EventQueue.
145 class EventQueue final : public GarbageCollectedFinalized<EventQueue> { 148 class EventQueue final : public GarbageCollectedFinalized<EventQueue> {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 String m_subprotocol; 244 String m_subprotocol;
242 String m_extensions; 245 String m_extensions;
243 246
244 Member<EventQueue> m_eventQueue; 247 Member<EventQueue> m_eventQueue;
245 Timer<DOMWebSocket> m_bufferedAmountConsumeTimer; 248 Timer<DOMWebSocket> m_bufferedAmountConsumeTimer;
246 }; 249 };
247 250
248 } // namespace blink 251 } // namespace blink
249 252
250 #endif // DOMWebSocket_h 253 #endif // DOMWebSocket_h
OLDNEW
« no previous file with comments | « content/content_common_mojo_bindings.gyp ('k') | third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698