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

Side by Side Diff: net/spdy/spdy_proxy_client_socket.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: git rebase-update patch Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/spdy/spdy_proxy_client_socket.h" 5 #include "net/spdy/spdy_proxy_client_socket.h"
6 6
7 #include <algorithm> // min 7 #include <algorithm> // min
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/callback_helpers.h" 12 #include "base/callback_helpers.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/threading/thread_task_runner_handle.h" 17 #include "base/threading/thread_task_runner_handle.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "net/base/auth.h" 19 #include "net/base/auth.h"
20 #include "net/base/io_buffer.h" 20 #include "net/base/io_buffer.h"
21 #include "net/http/http_auth_cache.h" 21 #include "net/http/http_auth_cache.h"
22 #include "net/http/http_auth_handler_factory.h" 22 #include "net/http/http_auth_handler_factory.h"
23 #include "net/http/http_request_info.h" 23 #include "net/http/http_request_info.h"
24 #include "net/http/http_response_headers.h" 24 #include "net/http/http_response_headers.h"
25 #include "net/http/proxy_connect_redirect_http_stream.h" 25 #include "net/http/proxy_connect_redirect_http_stream.h"
26 #include "net/log/net_log_event_type.h" 26 #include "net/log/net_log_event_type.h"
27 #include "net/log/net_log_source.h"
27 #include "net/log/net_log_source_type.h" 28 #include "net/log/net_log_source_type.h"
28 #include "net/spdy/spdy_http_utils.h" 29 #include "net/spdy/spdy_http_utils.h"
29 #include "url/gurl.h" 30 #include "url/gurl.h"
30 31
31 namespace net { 32 namespace net {
32 33
33 SpdyProxyClientSocket::SpdyProxyClientSocket( 34 SpdyProxyClientSocket::SpdyProxyClientSocket(
34 const base::WeakPtr<SpdyStream>& spdy_stream, 35 const base::WeakPtr<SpdyStream>& spdy_stream,
35 const std::string& user_agent, 36 const std::string& user_agent,
36 const HostPortPair& endpoint, 37 const HostPortPair& endpoint,
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 } else if (!read_callback_.is_null()) { 520 } else if (!read_callback_.is_null()) {
520 // If we have a read_callback_, the we need to make sure we call it back. 521 // If we have a read_callback_, the we need to make sure we call it back.
521 OnDataReceived(std::unique_ptr<SpdyBuffer>()); 522 OnDataReceived(std::unique_ptr<SpdyBuffer>());
522 } 523 }
523 // This may have been deleted by read_callback_, so check first. 524 // This may have been deleted by read_callback_, so check first.
524 if (weak_ptr.get() && !write_callback.is_null()) 525 if (weak_ptr.get() && !write_callback.is_null())
525 write_callback.Run(ERR_CONNECTION_CLOSED); 526 write_callback.Run(ERR_CONNECTION_CLOSED);
526 } 527 }
527 528
528 } // namespace net 529 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698