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 "components/grpc_support/bidirectional_stream.h" | 5 #include "components/grpc_support/bidirectional_stream.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/base/request_priority.h" | 18 #include "net/base/request_priority.h" |
19 #include "net/http/bidirectional_stream.h" | 19 #include "net/http/bidirectional_stream.h" |
20 #include "net/http/bidirectional_stream_request_info.h" | 20 #include "net/http/bidirectional_stream_request_info.h" |
21 #include "net/http/http_network_session.h" | 21 #include "net/http/http_network_session.h" |
22 #include "net/http/http_response_headers.h" | 22 #include "net/http/http_response_headers.h" |
23 #include "net/http/http_status_code.h" | 23 #include "net/http/http_status_code.h" |
24 #include "net/http/http_transaction_factory.h" | 24 #include "net/http/http_transaction_factory.h" |
25 #include "net/http/http_util.h" | 25 #include "net/http/http_util.h" |
26 #include "net/spdy/spdy_header_block.h" | 26 #include "net/spdy/core/spdy_header_block.h" |
27 #include "net/ssl/ssl_info.h" | 27 #include "net/ssl/ssl_info.h" |
28 #include "net/url_request/http_user_agent_settings.h" | 28 #include "net/url_request/http_user_agent_settings.h" |
29 #include "net/url_request/url_request_context.h" | 29 #include "net/url_request/url_request_context.h" |
30 #include "net/url_request/url_request_context_getter.h" | 30 #include "net/url_request/url_request_context_getter.h" |
31 #include "url/gurl.h" | 31 #include "url/gurl.h" |
32 | 32 |
33 namespace grpc_support { | 33 namespace grpc_support { |
34 | 34 |
35 BidirectionalStream::WriteBuffers::WriteBuffers() {} | 35 BidirectionalStream::WriteBuffers::WriteBuffers() {} |
36 | 36 |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 ->BelongsToCurrentThread(); | 392 ->BelongsToCurrentThread(); |
393 } | 393 } |
394 | 394 |
395 void BidirectionalStream::PostToNetworkThread( | 395 void BidirectionalStream::PostToNetworkThread( |
396 const tracked_objects::Location& from_here, | 396 const tracked_objects::Location& from_here, |
397 const base::Closure& task) { | 397 const base::Closure& task) { |
398 request_context_getter_->GetNetworkTaskRunner()->PostTask(from_here, task); | 398 request_context_getter_->GetNetworkTaskRunner()->PostTask(from_here, task); |
399 } | 399 } |
400 | 400 |
401 } // namespace cronet | 401 } // namespace cronet |
OLD | NEW |