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

Side by Side Diff: remoting/host/native_messaging/native_messaging_writer.cc

Issue 49113003: It2Me native messaging: GYP and source refactoring (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Max/Linux build break: remoting_native_messaging_host Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "remoting/host/setup/native_messaging_writer.h" 5 #include "remoting/host/native_messaging/native_messaging_writer.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
11 11
12 namespace { 12 namespace {
13 13
14 // 4-byte type used for the message header. 14 // 4-byte type used for the message header.
15 typedef uint32 MessageLengthType; 15 typedef uint32 MessageLengthType;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 if (result != message_length_as_int) { 94 if (result != message_length_as_int) {
95 LOG(ERROR) << "Failed to send message body, write returned " << result; 95 LOG(ERROR) << "Failed to send message body, write returned " << result;
96 fail_ = true; 96 fail_ = true;
97 return false; 97 return false;
98 } 98 }
99 99
100 return true; 100 return true;
101 } 101 }
102 102
103 } // namespace remoting 103 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698