| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Returns the number of local storages currently stored. | 93 // Returns the number of local storages currently stored. |
| 94 size_t GetLocalStorageCount() const; | 94 size_t GetLocalStorageCount() const; |
| 95 | 95 |
| 96 // Returns the set of origins that use local storage. | 96 // Returns the set of origins that use local storage. |
| 97 const std::set<GURL>& GetLocalStorageInfo() const; | 97 const std::set<GURL>& GetLocalStorageInfo() const; |
| 98 | 98 |
| 99 // BrowsingDataLocalStorageHelper implementation. | 99 // BrowsingDataLocalStorageHelper implementation. |
| 100 virtual void StartFetching( | 100 virtual void StartFetching( |
| 101 const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback) | 101 const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback) |
| 102 OVERRIDE; | 102 OVERRIDE; |
| 103 virtual void DeleteOrigin(const GURL& origin) OVERRIDE; |
| 103 | 104 |
| 104 private: | 105 private: |
| 105 virtual ~CannedBrowsingDataLocalStorageHelper(); | 106 virtual ~CannedBrowsingDataLocalStorageHelper(); |
| 106 | 107 |
| 107 // Convert the pending local storage info to local storage info objects. | |
| 108 void ConvertPendingInfo(); | |
| 109 | |
| 110 std::set<GURL> pending_local_storage_info_; | 108 std::set<GURL> pending_local_storage_info_; |
| 111 | 109 |
| 112 Profile* profile_; | 110 Profile* profile_; |
| 113 | 111 |
| 114 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); | 112 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); |
| 115 }; | 113 }; |
| 116 | 114 |
| 117 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ | 115 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ |
| OLD | NEW |