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

Side by Side Diff: content/browser/websocket/websocket_blob_sender.cc

Issue 2119973002: Port WebSockets to Mojo IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698