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

Side by Side Diff: mojo/runner/test/pingable_app.cc

Issue 1139123006: Fork the mojo shell interfaces used by Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "mojo/application/public/cpp/application_delegate.h"
6 #include "mojo/application/public/cpp/application_impl.h"
7 #include "mojo/application/public/cpp/application_runner.h"
8 #include "mojo/application/public/cpp/interface_factory.h"
5 #include "mojo/public/c/system/main.h" 9 #include "mojo/public/c/system/main.h"
6 #include "mojo/public/cpp/application/application_delegate.h"
7 #include "mojo/public/cpp/application/application_impl.h"
8 #include "mojo/public/cpp/application/application_runner.h"
9 #include "mojo/public/cpp/application/interface_factory.h"
10 #include "mojo/public/cpp/bindings/callback.h" 10 #include "mojo/public/cpp/bindings/callback.h"
11 #include "mojo/public/cpp/bindings/interface_request.h" 11 #include "mojo/public/cpp/bindings/interface_request.h"
12 #include "mojo/public/cpp/bindings/strong_binding.h" 12 #include "mojo/public/cpp/bindings/strong_binding.h"
13 #include "mojo/runner/test/pingable.mojom.h" 13 #include "mojo/runner/test/pingable.mojom.h"
14 14
15 namespace mojo { 15 namespace mojo {
16 16
17 class PingableImpl : public Pingable { 17 class PingableImpl : public Pingable {
18 public: 18 public:
19 PingableImpl(InterfaceRequest<Pingable> request, 19 PingableImpl(InterfaceRequest<Pingable> request,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 std::string app_url_; 61 std::string app_url_;
62 }; 62 };
63 63
64 } // namespace mojo 64 } // namespace mojo
65 65
66 MojoResult MojoMain(MojoHandle shell_handle) { 66 MojoResult MojoMain(MojoHandle shell_handle) {
67 mojo::ApplicationRunner runner(new mojo::PingableApp); 67 mojo::ApplicationRunner runner(new mojo::PingableApp);
68 return runner.Run(shell_handle); 68 return runner.Run(shell_handle);
69 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698