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

Side by Side Diff: services/service_manager/public/cpp/lib/service_context_ref.cc

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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 "services/shell/public/cpp/service_context_ref.h" 5 #include "services/service_manager/public/cpp/service_context_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/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
11 #include "base/threading/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 12
13 namespace shell { 13 namespace shell {
14 14
15 class ServiceContextRefImpl : public ServiceContextRef { 15 class ServiceContextRefImpl : public ServiceContextRef {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void ServiceContextRefFactory::AddRef() { 77 void ServiceContextRefFactory::AddRef() {
78 ++ref_count_; 78 ++ref_count_;
79 } 79 }
80 80
81 void ServiceContextRefFactory::Release() { 81 void ServiceContextRefFactory::Release() {
82 if (!--ref_count_) 82 if (!--ref_count_)
83 quit_closure_.Run(); 83 quit_closure_.Run();
84 } 84 }
85 85
86 } // namespace shell 86 } // namespace shell
OLDNEW
« no previous file with comments | « services/service_manager/public/cpp/lib/service_context.cc ('k') | services/service_manager/public/cpp/lib/service_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698