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

Side by Side Diff: components/filesystem/file_system_impl.h

Issue 1158253002: mandoline filesystem: Rewrite using base::File. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Get the error from the right object. Created 5 years, 6 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
« no previous file with comments | « components/filesystem/file_impl_unittest.cc ('k') | components/filesystem/file_system_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_ 5 #ifndef COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_
6 #define COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_ 6 #define COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/filesystem/public/interfaces/file_system.mojom.h" 9 #include "components/filesystem/public/interfaces/file_system.mojom.h"
10 #include "mojo/public/cpp/bindings/interface_request.h" 10 #include "mojo/public/cpp/bindings/interface_request.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // |Files| implementation: 25 // |Files| implementation:
26 // We provide a "private" temporary file system as the default. In Debug 26 // We provide a "private" temporary file system as the default. In Debug
27 // builds, we also provide access to a common file system named "debug" 27 // builds, we also provide access to a common file system named "debug"
28 // (stored under ~/MojoDebug). 28 // (stored under ~/MojoDebug).
29 void OpenFileSystem(const mojo::String& file_system, 29 void OpenFileSystem(const mojo::String& file_system,
30 mojo::InterfaceRequest<Directory> directory, 30 mojo::InterfaceRequest<Directory> directory,
31 const OpenFileSystemCallback& callback) override; 31 const OpenFileSystemCallback& callback) override;
32 32
33 private: 33 private:
34 const std::string remote_application_url_;
34 mojo::StrongBinding<FileSystem> binding_; 35 mojo::StrongBinding<FileSystem> binding_;
35 36
36 DISALLOW_COPY_AND_ASSIGN(FileSystemImpl); 37 DISALLOW_COPY_AND_ASSIGN(FileSystemImpl);
37 }; 38 };
38 39
39 } // namespace filesystem 40 } // namespace filesystem
40 41
41 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_ 42 #endif // COMPONENTS_FILESYSTEM_FILE_SYSTEM_IMPL_H_
OLDNEW
« no previous file with comments | « components/filesystem/file_impl_unittest.cc ('k') | components/filesystem/file_system_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698