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

Side by Side Diff: blimp/net/common.h

Issue 1551583003: Implementation and fixes for Blimp client/engine E2E communication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dtrainor-linux-cl1528243002
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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 BLIMP_NET_COMMON_H_ 5 #ifndef BLIMP_NET_COMMON_H_
6 #define BLIMP_NET_COMMON_H_ 6 #define BLIMP_NET_COMMON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "blimp/net/blimp_net_export.h" 10 #include "blimp/net/blimp_net_export.h"
11 #include "net/base/ip_address_number.h"
11 12
12 namespace blimp { 13 namespace blimp {
13 14
14 class BlimpMessage; 15 class BlimpMessage;
15 16
16 // TODO(kmarshall): Apply SCIENCE to determine a better constant here. 17 // TODO(kmarshall): Apply SCIENCE to determine a better constant here.
17 // See crbug.com/542464 18 // See crbug.com/542464
18 extern const size_t BLIMP_NET_EXPORT kMaxPacketPayloadSizeBytes; 19 extern const size_t BLIMP_NET_EXPORT kMaxPacketPayloadSizeBytes;
19 extern const size_t BLIMP_NET_EXPORT kPacketHeaderSizeBytes; 20 extern const size_t BLIMP_NET_EXPORT kPacketHeaderSizeBytes;
20 21
22 extern const uint16_t BLIMP_NET_EXPORT kDefaultTcpPort;
haibinlu 2015/12/29 00:51:46 this is engine's default port. the port will be ma
Kevin M 2015/12/30 23:08:49 It's OK here though, right?
23
24 // Creates an IPAddressNumber object for "0.0.0.0" (aka INADDR_ANY).
25 net::IPAddressNumber BLIMP_NET_EXPORT GetIPV4AnyAddress();
26
21 } // namespace blimp 27 } // namespace blimp
22 28
23 #endif // BLIMP_NET_COMMON_H_ 29 #endif // BLIMP_NET_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698