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

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: Styles. 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 private: 122 private:
123 FRIEND_TEST_ALL_PREFIXES(OfflinePageModelImplTest, MarkPageForDeletion); 123 FRIEND_TEST_ALL_PREFIXES(OfflinePageModelImplTest, MarkPageForDeletion);
124 124
125 typedef ScopedVector<OfflinePageArchiver> PendingArchivers; 125 typedef ScopedVector<OfflinePageArchiver> PendingArchivers;
126 126
127 // Callback for ensuring archive directory is created. 127 // Callback for ensuring archive directory is created.
128 void OnEnsureArchivesDirCreatedDone(const base::TimeTicks& start_time); 128 void OnEnsureArchivesDirCreatedDone(const base::TimeTicks& start_time);
129 129
130 void GetAllPagesAfterLoadDone( 130 void GetAllPagesAfterLoadDone(
131 const MultipleOfflinePageItemCallback& callback); 131 const MultipleOfflinePageItemCallback& callback) const;
132 void CheckPagesExistOfflineAfterLoadDone( 132 void CheckPagesExistOfflineAfterLoadDone(
133 const std::set<GURL>& urls, 133 const std::set<GURL>& urls,
134 const CheckPagesExistOfflineCallback& callback); 134 const CheckPagesExistOfflineCallback& callback);
135 void GetOfflineIdsForClientIdWhenLoadDone( 135 void GetOfflineIdsForClientIdWhenLoadDone(
136 const ClientId& client_id, 136 const ClientId& client_id,
137 const MultipleOfflineIdCallback& callback) const; 137 const MultipleOfflineIdCallback& callback) const;
138 void GetPageByOfflineIdWhenLoadDone( 138 void GetPageByOfflineIdWhenLoadDone(
139 int64_t offline_id, 139 int64_t offline_id,
140 const SingleOfflinePageItemCallback& callback) const; 140 const SingleOfflinePageItemCallback& callback) const;
141 void GetPagesByOnlineURLWhenLoadDone( 141 void GetPagesByOnlineURLWhenLoadDone(
(...skipping 122 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
« no previous file with comments | « components/offline_pages/offline_page_model.h ('k') | components/offline_pages/offline_page_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698