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

Side by Side Diff: extensions/browser/api/cast_channel/cast_socket.h

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
11 #include <string> 11 #include <string>
12 12
13 #include "base/cancelable_callback.h" 13 #include "base/cancelable_callback.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
18 #include "base/timer/timer.h" 18 #include "base/timer/timer.h"
19 #include "extensions/browser/api/api_resource.h" 19 #include "extensions/browser/api/api_resource.h"
20 #include "extensions/browser/api/api_resource_manager.h" 20 #include "extensions/browser/api/api_resource_manager.h"
21 #include "extensions/browser/api/cast_channel/cast_socket.h" 21 #include "extensions/browser/api/cast_channel/cast_socket.h"
22 #include "extensions/browser/api/cast_channel/cast_transport.h" 22 #include "extensions/browser/api/cast_channel/cast_transport.h"
23 #include "extensions/browser/api/cast_channel/logger_util.h" 23 #include "extensions/browser/api/cast_channel/logger_util.h"
24 #include "extensions/common/api/cast_channel.h" 24 #include "extensions/common/api/cast_channel.h"
25 #include "extensions/common/api/cast_channel/logging.pb.h" 25 #include "extensions/common/api/cast_channel/logging.pb.h"
26 #include "net/base/completion_callback.h" 26 #include "net/base/completion_callback.h"
27 #include "net/base/io_buffer.h" 27 #include "net/base/io_buffer.h"
28 #include "net/base/ip_endpoint.h" 28 #include "net/base/ip_endpoint.h"
29 #include "net/log/net_log.h" 29 #include "net/log/net_log_source.h"
30 30
31 namespace net { 31 namespace net {
32 class AddressList; 32 class AddressList;
33 class CertVerifier; 33 class CertVerifier;
34 class CTPolicyEnforcer; 34 class CTPolicyEnforcer;
35 class CTVerifier; 35 class CTVerifier;
36 class NetLog;
36 class SSLClientSocket; 37 class SSLClientSocket;
37 class StreamSocket; 38 class StreamSocket;
38 class TCPClientSocket; 39 class TCPClientSocket;
39 class TransportSecurityState; 40 class TransportSecurityState;
40 class X509Certificate; 41 class X509Certificate;
41 } 42 }
42 43
43 namespace extensions { 44 namespace extensions {
44 namespace api { 45 namespace api {
45 namespace cast_channel { 46 namespace cast_channel {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 const std::string owner_extension_id_; 290 const std::string owner_extension_id_;
290 // The id of the channel. 291 // The id of the channel.
291 int channel_id_; 292 int channel_id_;
292 // The IP endpoint that the the channel is connected to. 293 // The IP endpoint that the the channel is connected to.
293 net::IPEndPoint ip_endpoint_; 294 net::IPEndPoint ip_endpoint_;
294 // Receiver authentication requested for the channel. 295 // Receiver authentication requested for the channel.
295 ChannelAuthType channel_auth_; 296 ChannelAuthType channel_auth_;
296 // The NetLog for this service. 297 // The NetLog for this service.
297 net::NetLog* net_log_; 298 net::NetLog* net_log_;
298 // The NetLog source for this service. 299 // The NetLog source for this service.
299 net::NetLog::Source net_log_source_; 300 net::NetLogSource net_log_source_;
300 // True when keep-alive signaling should be handled for this socket. 301 // True when keep-alive signaling should be handled for this socket.
301 bool keep_alive_; 302 bool keep_alive_;
302 303
303 // Shared logging object, used to log CastSocket events for diagnostics. 304 // Shared logging object, used to log CastSocket events for diagnostics.
304 scoped_refptr<Logger> logger_; 305 scoped_refptr<Logger> logger_;
305 306
306 // CertVerifier is owned by us but should be deleted AFTER SSLClientSocket 307 // CertVerifier is owned by us but should be deleted AFTER SSLClientSocket
307 // since in some cases the destructor of SSLClientSocket may call a method 308 // since in some cases the destructor of SSLClientSocket may call a method
308 // to cancel a cert verification request. 309 // to cancel a cert verification request.
309 std::unique_ptr<net::CertVerifier> cert_verifier_; 310 std::unique_ptr<net::CertVerifier> cert_verifier_;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 // information. 381 // information.
381 AuthTransportDelegate* auth_delegate_; 382 AuthTransportDelegate* auth_delegate_;
382 383
383 DISALLOW_COPY_AND_ASSIGN(CastSocketImpl); 384 DISALLOW_COPY_AND_ASSIGN(CastSocketImpl);
384 }; 385 };
385 } // namespace cast_channel 386 } // namespace cast_channel
386 } // namespace api 387 } // namespace api
387 } // namespace extensions 388 } // namespace extensions
388 389
389 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ 390 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698