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

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

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 4 years, 12 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 #include "extensions/browser/api/cast_channel/cast_socket.h" 5 #include "extensions/browser/api/cast_channel/cast_socket.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return true; 102 return true;
103 } 103 }
104 104
105 CastSocketImpl::CastSocketImpl(const std::string& owner_extension_id, 105 CastSocketImpl::CastSocketImpl(const std::string& owner_extension_id,
106 const net::IPEndPoint& ip_endpoint, 106 const net::IPEndPoint& ip_endpoint,
107 ChannelAuthType channel_auth, 107 ChannelAuthType channel_auth,
108 net::NetLog* net_log, 108 net::NetLog* net_log,
109 const base::TimeDelta& timeout, 109 const base::TimeDelta& timeout,
110 bool keep_alive, 110 bool keep_alive,
111 const scoped_refptr<Logger>& logger, 111 const scoped_refptr<Logger>& logger,
112 uint64 device_capabilities) 112 uint64_t device_capabilities)
113 : CastSocket(owner_extension_id), 113 : CastSocket(owner_extension_id),
114 owner_extension_id_(owner_extension_id), 114 owner_extension_id_(owner_extension_id),
115 channel_id_(0), 115 channel_id_(0),
116 ip_endpoint_(ip_endpoint), 116 ip_endpoint_(ip_endpoint),
117 channel_auth_(channel_auth), 117 channel_auth_(channel_auth),
118 net_log_(net_log), 118 net_log_(net_log),
119 keep_alive_(keep_alive), 119 keep_alive_(keep_alive),
120 logger_(logger), 120 logger_(logger),
121 connect_timeout_(timeout), 121 connect_timeout_(timeout),
122 connect_timeout_timer_(new base::OneShotTimer), 122 connect_timeout_timer_(new base::OneShotTimer),
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 VLOG_WITH_CONNECTION(1) << "SetErrorState " << error_state; 614 VLOG_WITH_CONNECTION(1) << "SetErrorState " << error_state;
615 DCHECK_EQ(CHANNEL_ERROR_NONE, error_state_); 615 DCHECK_EQ(CHANNEL_ERROR_NONE, error_state_);
616 error_state_ = error_state; 616 error_state_ = error_state;
617 logger_->LogSocketErrorState(channel_id_, ErrorStateToProto(error_state_)); 617 logger_->LogSocketErrorState(channel_id_, ErrorStateToProto(error_state_));
618 delegate_->OnError(error_state_); 618 delegate_->OnError(error_state_);
619 } 619 }
620 } // namespace cast_channel 620 } // namespace cast_channel
621 } // namespace api 621 } // namespace api
622 } // namespace extensions 622 } // namespace extensions
623 #undef VLOG_WITH_CONNECTION 623 #undef VLOG_WITH_CONNECTION
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/cast_socket.h ('k') | extensions/browser/api/cast_channel/cast_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698