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

Unified Diff: mojo/examples/echo/echo_service.cc

Issue 684543003: Move //mojo/examples to //examples (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/examples/echo/echo_client.cc ('k') | mojo/examples/echo/echo_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/echo/echo_service.cc
diff --git a/mojo/examples/echo/echo_service.cc b/mojo/examples/echo/echo_service.cc
deleted file mode 100644
index 5df36adb16817517ccd675c914aad15d3e969ab6..0000000000000000000000000000000000000000
--- a/mojo/examples/echo/echo_service.cc
+++ /dev/null
@@ -1,41 +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 "mojo/examples/echo/echo_service.mojom.h"
-#include "mojo/public/c/system/main.h"
-#include "mojo/public/cpp/application/application_connection.h"
-#include "mojo/public/cpp/application/application_delegate.h"
-#include "mojo/public/cpp/application/application_runner.h"
-#include "mojo/public/cpp/application/interface_factory_impl.h"
-
-namespace mojo {
-namespace examples {
-
-class EchoServiceImpl : public InterfaceImpl<EchoService> {
- public:
- virtual void EchoString(const String& value,
- const Callback<void(String)>& callback) override {
- callback.Run(value);
- }
-};
-
-class EchoServiceDelegate : public ApplicationDelegate {
- public:
- virtual bool ConfigureIncomingConnection(
- ApplicationConnection* connection) override {
- connection->AddService(&echo_service_factory_);
- return true;
- }
-
- private:
- InterfaceFactoryImpl<EchoServiceImpl> echo_service_factory_;
-};
-
-} // namespace examples
-} // namespace mojo
-
-MojoResult MojoMain(MojoHandle shell_handle) {
- mojo::ApplicationRunner runner(new mojo::examples::EchoServiceDelegate);
- return runner.Run(shell_handle);
-}
« no previous file with comments | « mojo/examples/echo/echo_client.cc ('k') | mojo/examples/echo/echo_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698