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

Side by Side Diff: chrome/browser/extensions/api/messaging/native_message_port.cc

Issue 1967773004: Fix include path for moved thread_task_runner_handle.h header in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393013 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/extensions/api/messaging/native_message_port.h" 5 #include "chrome/browser/extensions/api/messaging/native_message_port.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "base/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 #include "chrome/browser/extensions/api/messaging/native_message_process_host.h" 12 #include "chrome/browser/extensions/api/messaging/native_message_process_host.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 // Handles jumping between the |host_task_runner| and the 17 // Handles jumping between the |host_task_runner| and the
18 // |message_service_task_runner|. 18 // |message_service_task_runner|.
19 // All methods on the host interface should be called on |host_task_runner|. 19 // All methods on the host interface should be called on |host_task_runner|.
20 // All methods on |port| (that calls into MessageServices) should be called 20 // All methods on |port| (that calls into MessageServices) should be called
21 // on |message_service_task_runner|. 21 // on |message_service_task_runner|.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 125 }
126 126
127 void NativeMessagePort::CloseChannel(const std::string& error_message) { 127 void NativeMessagePort::CloseChannel(const std::string& error_message) {
128 DCHECK(thread_checker_.CalledOnValidThread()); 128 DCHECK(thread_checker_.CalledOnValidThread());
129 if (weak_message_service_) { 129 if (weak_message_service_) {
130 weak_message_service_->CloseChannel(port_id_, error_message); 130 weak_message_service_->CloseChannel(port_id_, error_message);
131 } 131 }
132 } 132 }
133 133
134 } // namespace extensions 134 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698