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

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

Issue 2942743002: [cast_channel] Clean up CastSocketImpl ctor parameters (Closed)
Patch Set: fix compile error Created 3 years, 6 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_CHANNEL_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 static net::IPEndPoint* ParseConnectInfo( 173 static net::IPEndPoint* ParseConnectInfo(
174 const api::cast_channel::ConnectInfo& connect_info); 174 const api::cast_channel::ConnectInfo& connect_info);
175 175
176 void OnOpen(cast_channel::ChannelError result); 176 void OnOpen(cast_channel::ChannelError result);
177 177
178 std::unique_ptr<api::cast_channel::Open::Params> params_; 178 std::unique_ptr<api::cast_channel::Open::Params> params_;
179 // The id of the newly opened socket. 179 // The id of the newly opened socket.
180 int new_channel_id_; 180 int new_channel_id_;
181 CastChannelAPI* api_; 181 CastChannelAPI* api_;
182 std::unique_ptr<net::IPEndPoint> ip_endpoint_; 182 std::unique_ptr<net::IPEndPoint> ip_endpoint_;
183 cast_channel::ChannelAuthType channel_auth_;
184 base::TimeDelta liveness_timeout_; 183 base::TimeDelta liveness_timeout_;
185 base::TimeDelta ping_interval_; 184 base::TimeDelta ping_interval_;
186 185
187 FRIEND_TEST_ALL_PREFIXES(CastChannelOpenFunctionTest, TestParseConnectInfo); 186 FRIEND_TEST_ALL_PREFIXES(CastChannelOpenFunctionTest, TestParseConnectInfo);
188 DISALLOW_COPY_AND_ASSIGN(CastChannelOpenFunction); 187 DISALLOW_COPY_AND_ASSIGN(CastChannelOpenFunction);
189 }; 188 };
190 189
191 class CastChannelSendFunction : public CastChannelAsyncApiFunction { 190 class CastChannelSendFunction : public CastChannelAsyncApiFunction {
192 public: 191 public:
193 CastChannelSendFunction(); 192 CastChannelSendFunction();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 227
229 std::unique_ptr<api::cast_channel::Close::Params> params_; 228 std::unique_ptr<api::cast_channel::Close::Params> params_;
230 CastChannelAPI* api_; 229 CastChannelAPI* api_;
231 230
232 DISALLOW_COPY_AND_ASSIGN(CastChannelCloseFunction); 231 DISALLOW_COPY_AND_ASSIGN(CastChannelCloseFunction);
233 }; 232 };
234 233
235 } // namespace extensions 234 } // namespace extensions
236 235
237 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ 236 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_
OLDNEW
« no previous file with comments | « components/cast_channel/cast_transport_unittest.cc ('k') | extensions/browser/api/cast_channel/cast_channel_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698