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

Side by Side Diff: third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void send(const DOMArrayBuffer&, unsigned byteOffset, unsigned byteLength) o verride; 81 void send(const DOMArrayBuffer&, unsigned byteOffset, unsigned byteLength) o verride;
82 void send(PassRefPtr<BlobDataHandle>) override; 82 void send(PassRefPtr<BlobDataHandle>) override;
83 void sendTextAsCharVector(PassOwnPtr<Vector<char>> data) override; 83 void sendTextAsCharVector(PassOwnPtr<Vector<char>> data) override;
84 void sendBinaryAsCharVector(PassOwnPtr<Vector<char>> data) override; 84 void sendBinaryAsCharVector(PassOwnPtr<Vector<char>> data) override;
85 // Start closing handshake. Use the CloseEventCodeNotSpecified for the code 85 // Start closing handshake. Use the CloseEventCodeNotSpecified for the code
86 // argument to omit payload. 86 // argument to omit payload.
87 void close(int code, const String& reason) override; 87 void close(int code, const String& reason) override;
88 void fail(const String& reason, MessageLevel, PassOwnPtr<SourceLocation>) ov erride; 88 void fail(const String& reason, MessageLevel, PassOwnPtr<SourceLocation>) ov erride;
89 void disconnect() override; 89 void disconnect() override;
90 90
91 virtual void loaderTestTransmit(WebSocketHandle::LoaderTestIPC, bool verifyD ata, size_t bucketSize, size_t bufferSize, size_t totalSize, WebCallbacks<int, v oid>*);
92
91 DECLARE_VIRTUAL_TRACE(); 93 DECLARE_VIRTUAL_TRACE();
92 94
93 private: 95 private:
94 class BlobLoader; 96 class BlobLoader;
95 class Message; 97 class Message;
96 98
97 enum MessageType { 99 enum MessageType {
98 MessageTypeText, 100 MessageTypeText,
99 MessageTypeBlob, 101 MessageTypeBlob,
100 MessageTypeArrayBuffer, 102 MessageTypeArrayBuffer,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 154
153 OwnPtr<SourceLocation> m_locationAtConstruction; 155 OwnPtr<SourceLocation> m_locationAtConstruction;
154 RefPtr<WebSocketHandshakeRequest> m_handshakeRequest; 156 RefPtr<WebSocketHandshakeRequest> m_handshakeRequest;
155 157
156 static const uint64_t receivedDataSizeForFlowControlHighWaterMark = 1 << 15; 158 static const uint64_t receivedDataSizeForFlowControlHighWaterMark = 1 << 15;
157 }; 159 };
158 160
159 } // namespace blink 161 } // namespace blink
160 162
161 #endif // DocumentWebSocketChannel_h 163 #endif // DocumentWebSocketChannel_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698