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

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

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 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 #ifndef REMOTING_HOST_NATIVE_MESSAGING_NATIVE_MESSAGING_WRITER_H_ 5 #ifndef REMOTING_HOST_NATIVE_MESSAGING_NATIVE_MESSAGING_WRITER_H_
6 #define REMOTING_HOST_NATIVE_MESSAGING_NATIVE_MESSAGING_WRITER_H_ 6 #define REMOTING_HOST_NATIVE_MESSAGING_NATIVE_MESSAGING_WRITER_H_
7 7
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/macros.h"
9 10
10 namespace base { 11 namespace base {
11 class Value; 12 class Value;
12 } // namespace base 13 } // namespace base
13 14
14 namespace remoting { 15 namespace remoting {
15 16
16 // This class is used for sending messages to the Native Messaging client 17 // This class is used for sending messages to the Native Messaging client
17 // webapp. 18 // webapp.
18 class NativeMessagingWriter { 19 class NativeMessagingWriter {
19 public: 20 public:
20 explicit NativeMessagingWriter(base::File file); 21 explicit NativeMessagingWriter(base::File file);
21 ~NativeMessagingWriter(); 22 ~NativeMessagingWriter();
22 23
23 // Sends a message to the Native Messaging client, returning true if 24 // Sends a message to the Native Messaging client, returning true if
24 // successful. 25 // successful.
25 bool WriteMessage(const base::Value& message); 26 bool WriteMessage(const base::Value& message);
26 27
27 private: 28 private:
28 base::File write_stream_; 29 base::File write_stream_;
29 bool fail_; 30 bool fail_;
30 31
31 DISALLOW_COPY_AND_ASSIGN(NativeMessagingWriter); 32 DISALLOW_COPY_AND_ASSIGN(NativeMessagingWriter);
32 }; 33 };
33 34
34 } // namespace remoting 35 } // namespace remoting
35 36
36 #endif // REMOTING_HOST_NATIVE_MESSAGING_NATIVE_MESSAGING_WRITER_H_ 37 #endif // REMOTING_HOST_NATIVE_MESSAGING_NATIVE_MESSAGING_WRITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698