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

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

Issue 7619010: Session-only local storage cleared on exit. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 15 matching lines...) Expand all
26 // Protected storage is not subject to removal by the browsing data remover. 26 // Protected storage is not subject to removal by the browsing data remover.
27 virtual bool IsStorageProtected(const GURL& origin) = 0; 27 virtual bool IsStorageProtected(const GURL& origin) = 0;
28 28
29 // Unlimited storage is not subject to 'quotas'. 29 // Unlimited storage is not subject to 'quotas'.
30 virtual bool IsStorageUnlimited(const GURL& origin) = 0; 30 virtual bool IsStorageUnlimited(const GURL& origin) = 0;
31 31
32 // Checks if extension identified with |extension_id| is registered as 32 // Checks if extension identified with |extension_id| is registered as
33 // file handler. 33 // file handler.
34 virtual bool IsFileHandler(const std::string& extension_id) = 0; 34 virtual bool IsFileHandler(const std::string& extension_id) = 0;
35 35
36 // Some origins are only allowed to store session-only data which is deleted
37 // when the session ends.
38 virtual bool IsStorageSessionOnly(const GURL& origin) = 0;
39
36 protected: 40 protected:
37 friend class base::RefCountedThreadSafe<SpecialStoragePolicy>; 41 friend class base::RefCountedThreadSafe<SpecialStoragePolicy>;
38 virtual ~SpecialStoragePolicy(); 42 virtual ~SpecialStoragePolicy();
39 }; 43 };
40 44
41 } // namespace quota 45 } // namespace quota
42 46
43 #endif // WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_ 47 #endif // WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698