Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / mojo / examples / apptest / example_service_application.h
blob249174825dd4f68a1fc01e047b6b203b3a62400e
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
3 // found in the LICENSE file.
5 #ifndef MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_
6 #define MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_
8 #include "mojo/examples/apptest/example_service_impl.h"
9 #include "mojo/public/cpp/application/application_delegate.h"
10 #include "mojo/public/cpp/application/interface_factory_impl.h"
11 #include "mojo/public/cpp/system/macros.h"
13 namespace mojo {
15 class ApplicationConnection;
17 class ExampleServiceApplication : public ApplicationDelegate {
18 public:
19 ExampleServiceApplication();
20 virtual ~ExampleServiceApplication();
22 private:
23 // ApplicationDelegate implementation.
24 virtual bool ConfigureIncomingConnection(ApplicationConnection* connection)
25 MOJO_OVERRIDE;
27 InterfaceFactoryImpl<ExampleServiceImpl> example_service_factory_;
29 MOJO_DISALLOW_COPY_AND_ASSIGN(ExampleServiceApplication);
32 } // namespace mojo
34 #endif // MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_