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

Side by Side Diff: webkit/fileapi/file_system_options.h

Issue 10447055: Move fileapi into its own component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes and use FILEAPI_EXPORT_PRIVATE Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_FILEAPI_FILE_SYSTEM_OPTIONS_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPTIONS_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPTIONS_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPTIONS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "webkit/fileapi/fileapi_export.h"
12
11 namespace fileapi { 13 namespace fileapi {
12 14
13 // Provides runtime options that may change FileSystem API behavior. 15 // Provides runtime options that may change FileSystem API behavior.
14 // This object is copyable. 16 // This object is copyable.
15 class FileSystemOptions { 17 class FILEAPI_EXPORT FileSystemOptions {
16 public: 18 public:
17 enum ProfileMode { 19 enum ProfileMode {
18 PROFILE_MODE_NORMAL = 0, 20 PROFILE_MODE_NORMAL = 0,
19 PROFILE_MODE_INCOGNITO 21 PROFILE_MODE_INCOGNITO
20 }; 22 };
21 23
22 // |profile_mode| specifies if the profile (for this filesystem) 24 // |profile_mode| specifies if the profile (for this filesystem)
23 // is running in incognito mode (PROFILE_MODE_INCOGNITO) or no 25 // is running in incognito mode (PROFILE_MODE_INCOGNITO) or no
24 // (PROFILE_MODE_NORMAL). 26 // (PROFILE_MODE_NORMAL).
25 // |additional_allowed_schemes| specifies schemes that are allowed 27 // |additional_allowed_schemes| specifies schemes that are allowed
(...skipping 16 matching lines...) Expand all
42 } 44 }
43 45
44 private: 46 private:
45 const ProfileMode profile_mode_; 47 const ProfileMode profile_mode_;
46 const std::vector<std::string> additional_allowed_schemes_; 48 const std::vector<std::string> additional_allowed_schemes_;
47 }; 49 };
48 50
49 } // namespace fileapi 51 } // namespace fileapi
50 52
51 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPTIONS_H_ 53 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698