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

Side by Side Diff: content/browser/renderer_host/websocket_dispatcher_host.h

Issue 1664743002: [OBSOLETE][DO NOT SUBMIT][DO NOT COMMIT]] Browser-side implementation of WebSocket Blob receive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@websocket_blob_send_sender
Patch Set: Now actually works. Created 4 years, 10 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 const WebSocketHandshakeResponse& response) WARN_UNUSED_RESULT; 99 const WebSocketHandshakeResponse& response) WARN_UNUSED_RESULT;
100 100
101 // Sends a WebSocketMsg_NotifyFailure IPC and deletes and unregisters the 101 // Sends a WebSocketMsg_NotifyFailure IPC and deletes and unregisters the
102 // channel. 102 // channel.
103 WebSocketHostState NotifyFailure( 103 WebSocketHostState NotifyFailure(
104 int routing_id, 104 int routing_id,
105 const std::string& message) WARN_UNUSED_RESULT; 105 const std::string& message) WARN_UNUSED_RESULT;
106 106
107 WebSocketHostState BlobSendComplete(int routing_id); 107 WebSocketHostState BlobSendComplete(int routing_id);
108 108
109 WebSocketHostState BlobReceived(int routing_id,
110 const std::string& uuid,
111 uint64_t size);
112
109 // Sends a WebSocketMsg_DropChannel IPC and deletes and unregisters the 113 // Sends a WebSocketMsg_DropChannel IPC and deletes and unregisters the
110 // channel. 114 // channel.
111 WebSocketHostState DoDropChannel(int routing_id, 115 WebSocketHostState DoDropChannel(int routing_id,
112 bool was_clean, 116 bool was_clean,
113 uint16_t code, 117 uint16_t code,
114 const std::string& reason) 118 const std::string& reason)
115 WARN_UNUSED_RESULT; 119 WARN_UNUSED_RESULT;
116 120
117 // Returns whether the associated renderer process can read raw cookies. 121 // Returns whether the associated renderer process can read raw cookies.
118 bool CanReadRawCookies() const; 122 bool CanReadRawCookies() const;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 207
204 // Needed to access to the StoragePartition for browser-side blob sending. 208 // Needed to access to the StoragePartition for browser-side blob sending.
205 StoragePartition* const storage_partition_; 209 StoragePartition* const storage_partition_;
206 210
207 DISALLOW_COPY_AND_ASSIGN(WebSocketDispatcherHost); 211 DISALLOW_COPY_AND_ASSIGN(WebSocketDispatcherHost);
208 }; 212 };
209 213
210 } // namespace content 214 } // namespace content
211 215
212 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_ 216 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698