OLD | NEW |
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 Loading... |
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 |
OLD | NEW |