Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/browser/browsing_data/browsing_data_local_storage_helper.h

Issue 124183002: Implement delete methods for the various CannedBrowsingDataHelpers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698