OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "content/browser/renderer_host/websocket_blob_sender.h" | 5 #include "content/browser/websocket/websocket_blob_sender.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <ostream> | 8 #include <ostream> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/callback_helpers.h" | 13 #include "base/callback_helpers.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/numerics/safe_conversions.h" | 15 #include "base/numerics/safe_conversions.h" |
16 #include "content/browser/renderer_host/websocket_dispatcher_host.h" | 16 #include "content/browser/websocket/websocket_impl.h" |
17 #include "content/browser/renderer_host/websocket_host.h" | |
18 #include "net/base/io_buffer.h" | 17 #include "net/base/io_buffer.h" |
19 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
20 #include "net/websockets/websocket_channel.h" | 19 #include "net/websockets/websocket_channel.h" |
21 #include "net/websockets/websocket_frame.h" | 20 #include "net/websockets/websocket_frame.h" |
22 #include "storage/browser/blob/blob_data_handle.h" | 21 #include "storage/browser/blob/blob_data_handle.h" |
23 #include "storage/browser/blob/blob_reader.h" | 22 #include "storage/browser/blob/blob_reader.h" |
24 #include "storage/browser/blob/blob_storage_context.h" | 23 #include "storage/browser/blob/blob_storage_context.h" |
25 | 24 |
26 namespace content { | 25 namespace content { |
27 | 26 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 } | 274 } |
276 | 275 |
277 // It is important not to set next_state_ until after the call to SendFrame() | 276 // It is important not to set next_state_ until after the call to SendFrame() |
278 // because SendFrame() will sometimes call OnNewSendQuota() synchronously. | 277 // because SendFrame() will sometimes call OnNewSendQuota() synchronously. |
279 if (!fin) | 278 if (!fin) |
280 next_state_ = State::WAIT_FOR_QUOTA; | 279 next_state_ = State::WAIT_FOR_QUOTA; |
281 return net::OK; | 280 return net::OK; |
282 } | 281 } |
283 | 282 |
284 } // namespace content | 283 } // namespace content |
OLD | NEW |