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

Side by Side Diff: components/filesystem/main.cc

Issue 1147083002: mandoline: Fork the files service from the mojo repository. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I think the problem was in the mandoline build.gn Created 5 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
OLDNEW
(Empty)
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.
4
5 #include "base/macros.h"
6 #include "components/filesystem/files_impl.h"
7 #include "components/filesystem/public/interfaces/files.mojom.h"
8 #include "mojo/application/public/cpp/application_connection.h"
9 #include "mojo/application/public/cpp/application_delegate.h"
10 #include "mojo/application/public/cpp/application_runner.h"
11 #include "mojo/application/public/cpp/interface_factory.h"
12 #include "mojo/public/c/system/main.h"
13
14 namespace mojo {
15 namespace files {
16
17 class FilesApp : public ApplicationDelegate, public InterfaceFactory<Files> {
18 public:
19 FilesApp() {}
20 ~FilesApp() override {}
21
22 private:
23 // |ApplicationDelegate| override:
24 bool ConfigureIncomingConnection(ApplicationConnection* connection) override {
25 connection->AddService<Files>(this);
26 return true;
27 }
28
29 // |InterfaceFactory<Files>| implementation:
30 void Create(ApplicationConnection* connection,
31 InterfaceRequest<Files> request) override {
32 new FilesImpl(connection, request.Pass());
33 }
34
35 DISALLOW_COPY_AND_ASSIGN(FilesApp);
36 };
37
38 } // namespace files
39 } // namespace mojo
40
41 MojoResult MojoMain(MojoHandle application_request) {
42 mojo::ApplicationRunner runner(new mojo::files::FilesApp());
43 return runner.Run(application_request);
44 }
OLDNEW
« no previous file with comments | « components/filesystem/futimens_android.cc ('k') | components/filesystem/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698