| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |