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

Side by Side Diff: remoting/host/security_key/remote_security_key_message_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/security_key/remote_security_key_message_reader.h" 5 #include "remoting/host/security_key/remote_security_key_message_reader.h"
6 6
7 #include <cstdint> 7 #include <cstdint>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/files/file.h" 12 #include "base/files/file.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "base/thread_task_runner_handle.h" 16 #include "base/threading/thread_task_runner_handle.h"
17 #include "remoting/host/security_key/security_key_message.h" 17 #include "remoting/host/security_key/security_key_message.h"
18 18
19 namespace remoting { 19 namespace remoting {
20 20
21 RemoteSecurityKeyMessageReader::RemoteSecurityKeyMessageReader( 21 RemoteSecurityKeyMessageReader::RemoteSecurityKeyMessageReader(
22 base::File input_file) 22 base::File input_file)
23 : read_stream_(std::move(input_file)), 23 : read_stream_(std::move(input_file)),
24 reader_thread_("RemoteSecurityKeyMessageReader"), 24 reader_thread_("RemoteSecurityKeyMessageReader"),
25 weak_factory_(this) { 25 weak_factory_(this) {
26 base::Thread::Options options; 26 base::Thread::Options options;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 DCHECK(main_task_runner_->RunsTasksOnCurrentThread()); 125 DCHECK(main_task_runner_->RunsTasksOnCurrentThread());
126 message_callback_.Run(std::move(message)); 126 message_callback_.Run(std::move(message));
127 } 127 }
128 128
129 void RemoteSecurityKeyMessageReader::InvokeErrorCallback() { 129 void RemoteSecurityKeyMessageReader::InvokeErrorCallback() {
130 DCHECK(main_task_runner_->RunsTasksOnCurrentThread()); 130 DCHECK(main_task_runner_->RunsTasksOnCurrentThread());
131 error_callback_.Run(); 131 error_callback_.Run();
132 } 132 }
133 133
134 } // namespace remoting 134 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698