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_reader.h" | 5 #include "remoting/host/native_messaging/native_messaging_reader.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void NativeMessagingReader::InvokeMessageCallback( | 158 void NativeMessagingReader::InvokeMessageCallback( |
159 scoped_ptr<base::Value> message) { | 159 scoped_ptr<base::Value> message) { |
160 message_callback_.Run(message.Pass()); | 160 message_callback_.Run(message.Pass()); |
161 } | 161 } |
162 | 162 |
163 void NativeMessagingReader::InvokeEofCallback() { | 163 void NativeMessagingReader::InvokeEofCallback() { |
164 eof_callback_.Run(); | 164 eof_callback_.Run(); |
165 } | 165 } |
166 | 166 |
167 } // namespace remoting | 167 } // namespace remoting |
OLD | NEW |