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

Side by Side Diff: components/offline_pages/offline_page_model.h

Issue 1741123002: Add removal filter support for Cookies, Storage, and Content Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 const DeletePageCallback& callback); 171 const DeletePageCallback& callback);
172 172
173 // Deletes offline pages related to the passed |bookmark_ids|. Requires that 173 // Deletes offline pages related to the passed |bookmark_ids|. Requires that
174 // the model is loaded. 174 // the model is loaded.
175 void DeletePagesByBookmarkId(const std::vector<int64_t>& bookmark_ids, 175 void DeletePagesByBookmarkId(const std::vector<int64_t>& bookmark_ids,
176 const DeletePageCallback& callback); 176 const DeletePageCallback& callback);
177 177
178 // Wipes out all the data by deleting all saved files and clearing the store. 178 // Wipes out all the data by deleting all saved files and clearing the store.
179 void ClearAll(const base::Closure& callback); 179 void ClearAll(const base::Closure& callback);
180 180
181 // Wipes out data flagged by the predicate by deleting all saved files and
182 // clearing the store.
183 void ClearWithURLPredicate(
184 const base::Callback<bool(const GURL&)> predicate,
185 const base::Closure& callback);
186
181 // Returns true if there're offline pages. 187 // Returns true if there're offline pages.
182 bool HasOfflinePages() const; 188 bool HasOfflinePages() const;
183 189
184 // Gets all available offline pages. Requires that the model is loaded. 190 // Gets all available offline pages. Requires that the model is loaded.
185 const std::vector<OfflinePageItem> GetAllPages() const; 191 const std::vector<OfflinePageItem> GetAllPages() const;
186 192
187 // Gets pages that should be removed to clean up storage. Requires that the 193 // Gets pages that should be removed to clean up storage. Requires that the
188 // model is loaded. 194 // model is loaded.
189 const std::vector<OfflinePageItem> GetPagesToCleanUp() const; 195 const std::vector<OfflinePageItem> GetPagesToCleanUp() const;
190 196
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 scoped_observer_; 328 scoped_observer_;
323 329
324 base::WeakPtrFactory<OfflinePageModel> weak_ptr_factory_; 330 base::WeakPtrFactory<OfflinePageModel> weak_ptr_factory_;
325 331
326 DISALLOW_COPY_AND_ASSIGN(OfflinePageModel); 332 DISALLOW_COPY_AND_ASSIGN(OfflinePageModel);
327 }; 333 };
328 334
329 } // namespace offline_pages 335 } // namespace offline_pages
330 336
331 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ 337 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698