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

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

Issue 2026843003: [Offline Pages] Removing client in storage manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_IMPL_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 ~OfflinePageModelImpl() override; 60 ~OfflinePageModelImpl() override;
61 61
62 // Implemented methods: 62 // Implemented methods:
63 void AddObserver(Observer* observer) override; 63 void AddObserver(Observer* observer) override;
64 void RemoveObserver(Observer* observer) override; 64 void RemoveObserver(Observer* observer) override;
65 void SavePage(const GURL& url, 65 void SavePage(const GURL& url,
66 const ClientId& client_id, 66 const ClientId& client_id,
67 std::unique_ptr<OfflinePageArchiver> archiver, 67 std::unique_ptr<OfflinePageArchiver> archiver,
68 const SavePageCallback& callback) override; 68 const SavePageCallback& callback) override;
69 void MarkPageAccessed(int64_t offline_id) override; 69 void MarkPageAccessed(int64_t offline_id) override;
70 void ClearAll(const base::Closure& callback) override;
70 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, 71 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids,
71 const DeletePageCallback& callback) override; 72 const DeletePageCallback& callback) override;
72 void ClearAll(const base::Closure& callback) override;
73 void DeletePagesByURLPredicate(const UrlPredicate& predicate, 73 void DeletePagesByURLPredicate(const UrlPredicate& predicate,
74 const DeletePageCallback& callback) override; 74 const DeletePageCallback& callback) override;
75 void HasPages(const std::string& name_space, 75 void HasPages(const std::string& name_space,
76 const HasPagesCallback& callback) override; 76 const HasPagesCallback& callback) override;
77 void CheckPagesExistOffline( 77 void CheckPagesExistOffline(
78 const std::set<GURL>& urls, 78 const std::set<GURL>& urls,
79 const CheckPagesExistOfflineCallback& callback) override; 79 const CheckPagesExistOfflineCallback& callback) override;
80 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override; 80 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override;
81 void GetOfflineIdsForClientId( 81 void GetOfflineIdsForClientId(
82 const ClientId& client_id, 82 const ClientId& client_id,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 std::unique_ptr<ArchiveManager> archive_manager_; 264 std::unique_ptr<ArchiveManager> archive_manager_;
265 265
266 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; 266 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_;
267 267
268 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); 268 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl);
269 }; 269 };
270 270
271 } // namespace offline_pages 271 } // namespace offline_pages
272 272
273 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_ 273 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698