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

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

Issue 2683493002: Get signals working in the EXTRA_DATA section of MHTML (Closed)
Patch Set: Created 3 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 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_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_
6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ 6 #define COMPONENTS_OFFLINE_PAGES_CORE_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 std::unique_ptr<OfflinePageMetadataStore> store, 60 std::unique_ptr<OfflinePageMetadataStore> store,
61 const base::FilePath& archives_dir, 61 const base::FilePath& archives_dir,
62 const scoped_refptr<base::SequencedTaskRunner>& task_runner); 62 const scoped_refptr<base::SequencedTaskRunner>& task_runner);
63 ~OfflinePageModelImpl() override; 63 ~OfflinePageModelImpl() override;
64 64
65 // Implemented methods: 65 // Implemented methods:
66 void AddObserver(Observer* observer) override; 66 void AddObserver(Observer* observer) override;
67 void RemoveObserver(Observer* observer) override; 67 void RemoveObserver(Observer* observer) override;
68 void SavePage(const SavePageParams& save_page_params, 68 void SavePage(const SavePageParams& save_page_params,
69 std::unique_ptr<OfflinePageArchiver> archiver, 69 std::unique_ptr<OfflinePageArchiver> archiver,
70 const std::vector<std::string>& signal_data,
70 const SavePageCallback& callback) override; 71 const SavePageCallback& callback) override;
71 void MarkPageAccessed(int64_t offline_id) override; 72 void MarkPageAccessed(int64_t offline_id) override;
72 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, 73 void DeletePagesByOfflineId(const std::vector<int64_t>& offline_ids,
73 const DeletePageCallback& callback) override; 74 const DeletePageCallback& callback) override;
74 void DeletePagesByClientIds(const std::vector<ClientId>& client_ids, 75 void DeletePagesByClientIds(const std::vector<ClientId>& client_ids,
75 const DeletePageCallback& callback) override; 76 const DeletePageCallback& callback) override;
76 77
77 void GetPagesMatchingQuery( 78 void GetPagesMatchingQuery(
78 std::unique_ptr<OfflinePageModelQuery> query, 79 std::unique_ptr<OfflinePageModelQuery> query,
79 const MultipleOfflinePageItemCallback& callback) override; 80 const MultipleOfflinePageItemCallback& callback) override;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 base::Clock* testing_clock_; 289 base::Clock* testing_clock_;
289 290
290 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; 291 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_;
291 292
292 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); 293 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl);
293 }; 294 };
294 295
295 } // namespace offline_pages 296 } // namespace offline_pages
296 297
297 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ 298 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698