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

Unified Diff: services/service_manager/public/cpp/lib/service.cc

Issue 2860023002: Eliminate lib directory for service manager client lib. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: services/service_manager/public/cpp/lib/service.cc
diff --git a/services/service_manager/public/cpp/lib/service.cc b/services/service_manager/public/cpp/lib/service.cc
deleted file mode 100644
index 2030d0364a2c67ee8b05c19e61f0c186dabdc85a..0000000000000000000000000000000000000000
--- a/services/service_manager/public/cpp/lib/service.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "services/service_manager/public/cpp/service.h"
-
-#include "base/logging.h"
-#include "services/service_manager/public/cpp/service_context.h"
-
-namespace service_manager {
-
-Service::Service() = default;
-
-Service::~Service() = default;
-
-void Service::OnStart() {}
-
-void Service::OnBindInterface(const BindSourceInfo& source,
- const std::string& interface_name,
- mojo::ScopedMessagePipeHandle interface_pipe) {}
-
-bool Service::OnServiceManagerConnectionLost() {
- return true;
-}
-
-ServiceContext* Service::context() const {
- DCHECK(service_context_)
- << "Service::context() may only be called after the Service constructor.";
- return service_context_;
-}
-
-void Service::SetContext(ServiceContext* context) {
- service_context_ = context;
-}
-
-ForwardingService::ForwardingService(Service* target) : target_(target) {}
-
-ForwardingService::~ForwardingService() {}
-
-void ForwardingService::OnStart() {
- target_->OnStart();
-}
-
-void ForwardingService::OnBindInterface(
- const BindSourceInfo& source,
- const std::string& interface_name,
- mojo::ScopedMessagePipeHandle interface_pipe) {
- target_->OnBindInterface(source, interface_name, std::move(interface_pipe));
-}
-
-bool ForwardingService::OnServiceManagerConnectionLost() {
- return target_->OnServiceManagerConnectionLost();
-}
-
-void ForwardingService::SetContext(ServiceContext* context) {
- target_->SetContext(context);
-}
-
-} // namespace service_manager

Powered by Google App Engine
This is Rietveld 408576698