| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <list> | 11 #include <list> |
| 12 #include <map> |
| 12 #include <set> | 13 #include <set> |
| 13 | 14 |
| 14 #include "base/callback.h" | 15 #include "base/callback.h" |
| 15 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 16 #include "base/macros.h" | 17 #include "base/macros.h" |
| 17 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 18 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 19 #include "content/public/browser/dom_storage_context.h" | 20 #include "content/public/browser/dom_storage_context.h" |
| 20 #include "url/gurl.h" | 21 #include "url/gurl.h" |
| 21 | 22 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const std::set<GURL>& GetLocalStorageInfo() const; | 86 const std::set<GURL>& GetLocalStorageInfo() const; |
| 86 | 87 |
| 87 // BrowsingDataLocalStorageHelper implementation. | 88 // BrowsingDataLocalStorageHelper implementation. |
| 88 void StartFetching(const FetchCallback& callback) override; | 89 void StartFetching(const FetchCallback& callback) override; |
| 89 void DeleteOrigin(const GURL& origin) override; | 90 void DeleteOrigin(const GURL& origin) override; |
| 90 | 91 |
| 91 private: | 92 private: |
| 92 ~CannedBrowsingDataLocalStorageHelper() override; | 93 ~CannedBrowsingDataLocalStorageHelper() override; |
| 93 | 94 |
| 94 std::set<GURL> pending_local_storage_info_; | 95 std::set<GURL> pending_local_storage_info_; |
| 96 std::multimap<GURL, GURL> pending_origins_to_pending_suborigins_; |
| 95 | 97 |
| 96 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); | 98 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ | 101 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ |
| OLD | NEW |