OLD | NEW |
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 CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 // Returns the number of local storages currently stored. | 88 // Returns the number of local storages currently stored. |
89 size_t GetLocalStorageCount() const; | 89 size_t GetLocalStorageCount() const; |
90 | 90 |
91 // Returns the set of origins that use local storage. | 91 // Returns the set of origins that use local storage. |
92 const std::set<GURL>& GetLocalStorageInfo() const; | 92 const std::set<GURL>& GetLocalStorageInfo() const; |
93 | 93 |
94 // BrowsingDataLocalStorageHelper implementation. | 94 // BrowsingDataLocalStorageHelper implementation. |
95 virtual void StartFetching( | 95 virtual void StartFetching( |
96 const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback) | 96 const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback) |
97 OVERRIDE; | 97 override; |
98 virtual void DeleteOrigin(const GURL& origin) OVERRIDE; | 98 virtual void DeleteOrigin(const GURL& origin) override; |
99 | 99 |
100 private: | 100 private: |
101 virtual ~CannedBrowsingDataLocalStorageHelper(); | 101 virtual ~CannedBrowsingDataLocalStorageHelper(); |
102 | 102 |
103 std::set<GURL> pending_local_storage_info_; | 103 std::set<GURL> pending_local_storage_info_; |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); | 105 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); |
106 }; | 106 }; |
107 | 107 |
108 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ | 108 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ |
OLD | NEW |