OLD | NEW |
(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 NET_SQLITE_SPECIAL_STORAGE_POLICY_DELEGATE_H_ |
| 6 #define NET_SQLITE_SPECIAL_STORAGE_POLICY_DELEGATE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 10 class GURL; |
| 11 |
| 12 namespace net { |
| 13 |
| 14 // Interface to determine whether session-only data has to be deleted at the |
| 15 // end of the session. |
| 16 class SpecialStoragePolicyDelegate { |
| 17 public: |
| 18 SpecialStoragePolicyDelegate() {} |
| 19 virtual ~SpecialStoragePolicyDelegate() {} |
| 20 |
| 21 // Some origins are only allowed to store session-only data which is deleted |
| 22 // when the session ends. |
| 23 virtual bool IsStorageSessionOnly(const GURL& origin) = 0; |
| 24 |
| 25 // Returns true if some origins are only allowed session-only storage. |
| 26 virtual bool HasSessionOnlyOrigins() = 0; |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(SpecialStoragePolicyDelegate); |
| 30 }; |
| 31 |
| 32 } // namespace net |
| 33 |
| 34 #endif // NET_SQLITE_SPECIAL_STORAGE_POLICY_DELEGATE_H_ |
OLD | NEW |