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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/provided_file_system.h

Issue 192573002: [fsp] Introduce file_system_provider::Service class for the FileSystemProvider API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified. Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
7
8 #include <string>
9
10 #include "base/files/file_path.h"
11
12 namespace chromeos {
13 namespace file_system_provider {
14
15 // Contains information about the provided file system instance.
16 class ProvidedFileSystem {
17 public:
18 ProvidedFileSystem();
19 ProvidedFileSystem(const std::string& extension_id,
20 const std::string& file_system_id,
21 const std::string& file_system_name,
22 const base::FilePath& mount_path);
23
24 ~ProvidedFileSystem();
25
26 const std::string& extension_id() const { return extension_id_; }
27 const std::string& file_system_id() const { return file_system_id_; }
28 const std::string& file_system_name() const { return file_system_name_; }
29 const base::FilePath& mount_path() const { return mount_path_; }
30
31 private:
32 // ID of the extension providing this file system.
33 std::string extension_id_;
34
35 // ID of the file system, used internally. Equal to the mount point name of
36 // the underlying file system.
37 std::string file_system_id_;
38
39 // Name of the file system, can be rendered in the UI.
40 std::string file_system_name_;
41
42 // Mount path of the underlying file system.
43 base::FilePath mount_path_;
44 };
45
46 } // namespace file_system_provider
47 } // namespace chromeos
48
49 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698