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

Side by Side Diff: examples/apptest/example_service_application.h

Issue 2015643002: Add (optional) options to Run[Main]Application(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 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 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_ 5 #ifndef MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_
6 #define MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_ 6 #define MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_
7 7
8 #include "examples/apptest/example_service_impl.h" 8 #include "examples/apptest/example_service_impl.h"
9 #include "mojo/public/cpp/application/application_delegate.h" 9 #include "mojo/public/cpp/application/application_impl_base.h"
10 #include "mojo/public/cpp/system/macros.h" 10 #include "mojo/public/cpp/system/macros.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 13
14 class ExampleServiceApplication : public ApplicationDelegate { 14 class ExampleServiceApplication : public ApplicationImplBase {
15 public: 15 public:
16 ExampleServiceApplication(); 16 ExampleServiceApplication();
17 ~ExampleServiceApplication() override; 17 ~ExampleServiceApplication() override;
18 18
19 private: 19 private:
20 // ApplicationDelegate implementation. 20 // ApplicationImplBase override.
21 bool ConfigureIncomingConnection( 21 bool OnAcceptConnection(ServiceProviderImpl* service_provider_impl) override;
22 ServiceProviderImpl* service_provider_impl) override;
23 22
24 MOJO_DISALLOW_COPY_AND_ASSIGN(ExampleServiceApplication); 23 MOJO_DISALLOW_COPY_AND_ASSIGN(ExampleServiceApplication);
25 }; 24 };
26 25
27 } // namespace mojo 26 } // namespace mojo
28 27
29 #endif // MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_ 28 #endif // MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_
OLDNEW
« no previous file with comments | « no previous file | examples/apptest/example_service_application.cc » ('j') | services/media/audio/audio_server_app.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698