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

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

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: Fixed misplaced EXPORT directive Created 4 years, 11 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
« no previous file with comments | « blimp/net/common.h ('k') | blimp/net/engine_authentication_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "blimp/net/common.h" 5 #include "blimp/net/common.h"
6 6
7 #include <iostream>
8
9 #include "blimp/common/proto/blimp_message.pb.h"
10 #include "net/base/ip_address_number.h"
11
7 namespace blimp { 12 namespace blimp {
8 13
9 const size_t kMaxPacketPayloadSizeBytes = 1 << 16; // 64KB 14 const size_t kMaxPacketPayloadSizeBytes = 1 << 16; // 64KB
10 const size_t kPacketHeaderSizeBytes = 4; 15 const size_t kPacketHeaderSizeBytes = 4;
11 16
17 std::ostream& operator<<(std::ostream& out, const BlimpMessage& message) {
18 // TODO(kmarshall): Look into including type-specific fields in the output.
19 out << "<BlimpMessage type=" << message.type()
20 << ", size=" << message.ByteSize() << ">";
21 return out;
22 }
23
12 } // namespace blimp 24 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/net/common.h ('k') | blimp/net/engine_authentication_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698