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

Side by Side Diff: webkit/quota/special_storage_policy.h

Issue 6810037: File API changes needed for safely passing user selected file entities from the file browser comp... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_QUOTA_SPECIAL_STORAGE_POLICY_H_ 5 #ifndef WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_
6 #define WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_ 6 #define WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_
7 7
8 #include <string>
9
8 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
9 11
12 class FilePath;
michaeln 2011/04/14 21:25:34 don't think this is needed anymore
zel 2011/04/14 21:46:20 Done.
10 class GURL; 13 class GURL;
11 14
12 namespace quota { 15 namespace quota {
13 16
14 // Special rights are granted to 'extensions' and 'applications'. The 17 // Special rights are granted to 'extensions' and 'applications'. The
15 // storage subsystems query this interface to determine which origins 18 // storage subsystems query this interface to determine which origins
16 // have these rights. Chrome provides an impl that is cognizant of what 19 // have these rights. Chrome provides an impl that is cognizant of what
17 // is currently installed in the extensions system. 20 // is currently installed in the extensions system.
18 // An implementation must be thread-safe. 21 // An implementation must be thread-safe.
19 class SpecialStoragePolicy 22 class SpecialStoragePolicy
20 : public base::RefCountedThreadSafe<SpecialStoragePolicy> { 23 : public base::RefCountedThreadSafe<SpecialStoragePolicy> {
21 public: 24 public:
22 SpecialStoragePolicy(); 25 SpecialStoragePolicy();
23 26
24 // Protected storage is not subject to removal by the browsing data remover. 27 // Protected storage is not subject to removal by the browsing data remover.
25 virtual bool IsStorageProtected(const GURL& origin) = 0; 28 virtual bool IsStorageProtected(const GURL& origin) = 0;
26 29
27 // Unlimited storage is not subject to 'quotas'. 30 // Unlimited storage is not subject to 'quotas'.
28 virtual bool IsStorageUnlimited(const GURL& origin) = 0; 31 virtual bool IsStorageUnlimited(const GURL& origin) = 0;
29 32
30 // Local file system access allowed via File API. 33 // Unlimited storage is not subject to 'quotas'.
michaeln 2011/04/14 21:25:34 copy/paste comment does not apply... and method na
zel 2011/04/14 21:46:20 Done.
31 virtual bool IsLocalFileSystemAccessAllowed(const GURL& origin) = 0; 34 virtual bool IsFileHanlder(const std::string& extension_id) = 0;
32 35
33 protected: 36 protected:
34 friend class base::RefCountedThreadSafe<SpecialStoragePolicy>; 37 friend class base::RefCountedThreadSafe<SpecialStoragePolicy>;
35 virtual ~SpecialStoragePolicy(); 38 virtual ~SpecialStoragePolicy();
36 }; 39 };
37 40
38 } // namespace quota 41 } // namespace quota
39 42
40 #endif // WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_ 43 #endif // WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698