1 // Copyright 2015 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 COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_
6 #define COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_
8 #include "base/macros.h"
9 #include "components/filesystem/file_system_impl.h"
10 #include "components/filesystem/public/interfaces/file_system.mojom.h"
11 #include "mojo/application/public/cpp/application_delegate.h"
12 #include "mojo/application/public/cpp/interface_factory.h"
14 namespace filesystem
{
16 class FileSystemApp
: public mojo::ApplicationDelegate
,
17 public mojo::InterfaceFactory
<FileSystem
> {
20 ~FileSystemApp() override
;
23 // |ApplicationDelegate| override:
24 bool ConfigureIncomingConnection(
25 mojo::ApplicationConnection
* connection
) override
;
27 // |InterfaceFactory<Files>| implementation:
28 void Create(mojo::ApplicationConnection
* connection
,
29 mojo::InterfaceRequest
<FileSystem
> request
) override
;
31 DISALLOW_COPY_AND_ASSIGN(FileSystemApp
);
34 } // namespace filesystem
36 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_APP_H_