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

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

Issue 1969053002: Fix include path for moved thread_task_runner_handle.h header in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 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
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/native_messaging/native_messaging_reader.h" 5 #include "remoting/host/native_messaging/native_messaging_reader.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/files/file.h" 13 #include "base/files/file.h"
14 #include "base/json/json_reader.h" 14 #include "base/json/json_reader.h"
15 #include "base/location.h" 15 #include "base/location.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/sequenced_task_runner.h" 17 #include "base/sequenced_task_runner.h"
18 #include "base/single_thread_task_runner.h" 18 #include "base/single_thread_task_runner.h"
19 #include "base/stl_util.h" 19 #include "base/stl_util.h"
20 #include "base/thread_task_runner_handle.h"
21 #include "base/threading/sequenced_worker_pool.h" 20 #include "base/threading/sequenced_worker_pool.h"
21 #include "base/threading/thread_task_runner_handle.h"
22 #include "base/values.h" 22 #include "base/values.h"
23 23
24 namespace { 24 namespace {
25 25
26 // uint32_t is specified in the protocol as the type for the message header. 26 // uint32_t is specified in the protocol as the type for the message header.
27 typedef uint32_t MessageLengthType; 27 typedef uint32_t MessageLengthType;
28 28
29 const int kMessageHeaderSize = sizeof(MessageLengthType); 29 const int kMessageHeaderSize = sizeof(MessageLengthType);
30 30
31 // Limit the size of received messages, to avoid excessive memory-allocation in 31 // Limit the size of received messages, to avoid excessive memory-allocation in
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void NativeMessagingReader::InvokeMessageCallback( 162 void NativeMessagingReader::InvokeMessageCallback(
163 std::unique_ptr<base::Value> message) { 163 std::unique_ptr<base::Value> message) {
164 message_callback_.Run(std::move(message)); 164 message_callback_.Run(std::move(message));
165 } 165 }
166 166
167 void NativeMessagingReader::InvokeEofCallback() { 167 void NativeMessagingReader::InvokeEofCallback() {
168 eof_callback_.Run(); 168 eof_callback_.Run();
169 } 169 }
170 170
171 } // namespace remoting 171 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/native_messaging/log_message_handler.cc ('k') | remoting/host/policy_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698