1a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
558e6fbe4ee35d65e14b626c557d37565bf8ad179Ben Murdoch#ifndef MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_
6a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)#define MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_
7a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "mojo/examples/apptest/example_service_impl.h"
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "mojo/public/cpp/application/application_delegate.h"
10a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)#include "mojo/public/cpp/application/interface_factory_impl.h"
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "mojo/public/cpp/system/macros.h"
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace mojo {
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)class ApplicationConnection;
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
17class ExampleServiceApplication : public ApplicationDelegate {
18 public:
19  ExampleServiceApplication();
20  virtual ~ExampleServiceApplication();
21
22 private:
23  // ApplicationDelegate implementation.
24  virtual bool ConfigureIncomingConnection(ApplicationConnection* connection)
25      MOJO_OVERRIDE;
26
27  InterfaceFactoryImpl<ExampleServiceImpl> example_service_factory_;
28
29  MOJO_DISALLOW_COPY_AND_ASSIGN(ExampleServiceApplication);
30};
31
32}  // namespace mojo
33
34#endif  // MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_APPLICATION_H_
35