OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_FILES_FILES_APP_H_ | 5 #ifndef SERVICES_FILES_FILES_APP_H_ |
6 #define SERVICES_FILES_FILES_APP_H_ | 6 #define SERVICES_FILES_FILES_APP_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.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/application/service_provider_impl.h" | |
11 | 10 |
12 namespace mojo { | 11 namespace mojo { |
13 namespace files { | 12 namespace files { |
14 | 13 |
15 class FilesApp : public ApplicationDelegate { | 14 class FilesApp : public ApplicationImplBase { |
16 public: | 15 public: |
17 FilesApp(); | 16 FilesApp(); |
18 ~FilesApp() override; | 17 ~FilesApp() override; |
19 | 18 |
20 private: | 19 private: |
21 // |ApplicationDelegate| override: | 20 // |ApplicationImplBase| override: |
22 bool ConfigureIncomingConnection( | 21 bool OnAcceptConnection(ServiceProviderImpl* service_provider_impl) override; |
23 ServiceProviderImpl* service_provider_impl) override; | |
24 | 22 |
25 DISALLOW_COPY_AND_ASSIGN(FilesApp); | 23 DISALLOW_COPY_AND_ASSIGN(FilesApp); |
26 }; | 24 }; |
27 | 25 |
28 } // namespace files | 26 } // namespace files |
29 } // namespace mojo | 27 } // namespace mojo |
30 | 28 |
31 #endif // SERVICES_FILES_FILES_APP_H_ | 29 #endif // SERVICES_FILES_FILES_APP_H_ |
OLD | NEW |