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

Side by Side Diff: services/shell/public/cpp/lib/service.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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "services/shell/public/cpp/service.h"
6
7 #include "services/shell/public/cpp/service_context.h"
8
9 namespace shell {
10
11 Service::Service() {}
12 Service::~Service() {}
13
14 void Service::OnStart(const Identity& identity) {}
15
16 bool Service::OnConnect(const Identity& remote_identity,
17 InterfaceRegistry* registry) {
18 return false;
19 }
20
21 bool Service::OnStop() { return true; }
22
23 Connector* Service::connector() {
24 return context_->connector();
25 }
26
27 ServiceContext* Service::context() {
28 return context_.get();
29 }
30
31 void Service::set_context(std::unique_ptr<ServiceContext> context) {
32 context_ = std::move(context);
33 }
34
35 } // namespace shell
OLDNEW
« no previous file with comments | « services/shell/public/cpp/lib/names.cc ('k') | services/shell/public/cpp/lib/service_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698