Chromium Code Reviews| 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/memory/ref_counted.h" | |
| 9 | |
| 10 namespace net { | |
| 11 | |
| 12 // Encapsulates methods of WebKit SpecialStoragePolicy used by net/sqlite. | |
|
Ryan Sleevi
2014/07/10 20:20:25
So, we would never mention this in a //net comment
mef
2014/07/11 13:29:23
Done.
| |
| 13 class SpecialStoragePolicyDelegate | |
| 14 : public base::RefCountedThreadSafe<SpecialStoragePolicyDelegate>{ | |
|
Ryan Sleevi
2014/07/10 20:20:25
1) Why ref-counted? Make ownership explicit
mef
2014/07/11 13:29:24
Done.
| |
| 15 public: | |
| 16 // Some origins are only allowed to store session-only data which is deleted | |
| 17 // when the session ends. | |
| 18 virtual bool IsStorageSessionOnly(const GURL& origin) = 0; | |
| 19 | |
| 20 // Returns true if some origins are only allowed session-only storage. | |
| 21 virtual bool HasSessionOnlyOrigins() = 0; | |
|
Ryan Sleevi
2014/07/10 20:20:25
I'm not sure I grok how this fits into //net, but
mef
2014/07/11 13:29:23
Ack. I've thrown this as straight copy of SpecialS
| |
| 22 protected: | |
| 23 friend class base::RefCountedThreadSafe<SpecialStoragePolicyDelegate>; | |
| 24 virtual ~SpecialStoragePolicyDelegate() {} | |
| 25 }; | |
| 26 | |
| 27 } // namespace net | |
| 28 | |
| 29 #endif // NET_SQLITE_SPECIAL_STORAGE_POLICY_DELEGATE_H_ | |
| OLD | NEW |