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

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

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « apps/moterm/moterm_view.cc ('k') | examples/apptest/example_service_application.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_delegate.h"
10 #include "mojo/public/cpp/application/interface_factory.h" 10 #include "mojo/public/cpp/application/interface_factory.h"
11 #include "mojo/public/cpp/system/macros.h" 11 #include "mojo/public/cpp/system/macros.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 14
15 class ApplicationConnection; 15 class ApplicationConnection;
16 16
17 class ExampleServiceApplication : public ApplicationDelegate, 17 class ExampleServiceApplication : public ApplicationDelegate,
18 public InterfaceFactory<ExampleService> { 18 public InterfaceFactory<ExampleService> {
19 public: 19 public:
20 ExampleServiceApplication(); 20 ExampleServiceApplication();
21 ~ExampleServiceApplication() override; 21 ~ExampleServiceApplication() override;
22 22
23 private: 23 private:
24 // ApplicationDelegate implementation. 24 // ApplicationDelegate implementation.
25 bool ConfigureIncomingConnection( 25 bool ConfigureIncomingConnection(
26 ApplicationConnection* connection) override; 26 ApplicationConnection* connection) override;
27 27
28 // InterfaceFactory<ExampleService> implementation. 28 // InterfaceFactory<ExampleService> implementation.
29 void Create(ApplicationConnection* connection, 29 void Create(const ConnectionContext& connection_context,
30 InterfaceRequest<ExampleService> request) override; 30 InterfaceRequest<ExampleService> request) override;
31 31
32 MOJO_DISALLOW_COPY_AND_ASSIGN(ExampleServiceApplication); 32 MOJO_DISALLOW_COPY_AND_ASSIGN(ExampleServiceApplication);
33 }; 33 };
34 34
35 } // namespace mojo 35 } // namespace mojo
36 36
37 #endif // MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_ 37 #endif // MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_
OLDNEW
« no previous file with comments | « apps/moterm/moterm_view.cc ('k') | examples/apptest/example_service_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698