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

Side by Side Diff: services/shell/public/cpp/lib/shell_connection_ref.cc

Issue 1965083003: Fix include path for moved thread_task_runner_handle.h header in services/ (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
« no previous file with comments | « services/catalog/reader.cc ('k') | services/shell/runner/host/child_process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "services/shell/public/cpp/shell_connection_ref.h" 5 #include "services/shell/public/cpp/shell_connection_ref.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
11 11
12 namespace shell { 12 namespace shell {
13 13
14 class ShellConnectionRefImpl : public ShellConnectionRef { 14 class ShellConnectionRefImpl : public ShellConnectionRef {
15 public: 15 public:
16 ShellConnectionRefImpl( 16 ShellConnectionRefImpl(
17 ShellConnectionRefFactory* factory, 17 ShellConnectionRefFactory* factory,
18 scoped_refptr<base::SingleThreadTaskRunner> shell_client_task_runner) 18 scoped_refptr<base::SingleThreadTaskRunner> shell_client_task_runner)
19 : factory_(factory), 19 : factory_(factory),
20 shell_client_task_runner_(shell_client_task_runner) {} 20 shell_client_task_runner_(shell_client_task_runner) {}
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void ShellConnectionRefFactory::AddRef() { 90 void ShellConnectionRefFactory::AddRef() {
91 ++ref_count_; 91 ++ref_count_;
92 } 92 }
93 93
94 void ShellConnectionRefFactory::Release() { 94 void ShellConnectionRefFactory::Release() {
95 if (!--ref_count_) 95 if (!--ref_count_)
96 quit_closure_.Run(); 96 quit_closure_.Run();
97 } 97 }
98 98
99 } // namespace shell 99 } // namespace shell
OLDNEW
« no previous file with comments | « services/catalog/reader.cc ('k') | services/shell/runner/host/child_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698