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

Side by Side Diff: content/common/service_manager/embedded_service_runner.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 "content/common/service_manager/embedded_service_runner.h" 5 #include "content/common/service_manager/embedded_service_runner.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "base/threading/thread_checker.h" 14 #include "base/threading/thread_checker.h"
15 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "services/shell/public/cpp/service_context.h" 16 #include "services/service_manager/public/cpp/service_context.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 class EmbeddedServiceRunner::Instance 20 class EmbeddedServiceRunner::Instance
21 : public base::RefCountedThreadSafe<Instance> { 21 : public base::RefCountedThreadSafe<Instance> {
22 public: 22 public:
23 Instance(const base::StringPiece& name, 23 Instance(const base::StringPiece& name,
24 const ServiceInfo& info, 24 const ServiceInfo& info,
25 const base::Closure& quit_closure) 25 const base::Closure& quit_closure)
26 : name_(name.as_string()), 26 : name_(name.as_string()),
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 const base::Closure& quit_closure) { 167 const base::Closure& quit_closure) {
168 quit_closure_ = quit_closure; 168 quit_closure_ = quit_closure;
169 } 169 }
170 170
171 void EmbeddedServiceRunner::OnQuit() { 171 void EmbeddedServiceRunner::OnQuit() {
172 if (!quit_closure_.is_null()) 172 if (!quit_closure_.is_null())
173 quit_closure_.Run(); 173 quit_closure_.Run();
174 } 174 }
175 175
176 } // namespace content 176 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698