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

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

Issue 2564163002: [Offline Pages] Remove load state from public OfflinePageModel API. (Closed)
Patch Set: Fix broken tests. Created 4 years 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 URLSearchMode url_search_mode, 100 URLSearchMode url_search_mode,
101 const MultipleOfflinePageItemCallback& callback) override; 101 const MultipleOfflinePageItemCallback& callback) override;
102 ClientPolicyController* GetPolicyController() override; 102 ClientPolicyController* GetPolicyController() override;
103 103
104 // Methods for testing only: 104 // Methods for testing only:
105 OfflinePageMetadataStore* GetStoreForTesting(); 105 OfflinePageMetadataStore* GetStoreForTesting();
106 void set_testing_clock(base::Clock* clock) { testing_clock_ = clock; } 106 void set_testing_clock(base::Clock* clock) { testing_clock_ = clock; }
107 107
108 OfflinePageStorageManager* GetStorageManager(); 108 OfflinePageStorageManager* GetStorageManager();
109 109
110 bool is_loaded() const override;
111
112 OfflineEventLogger* GetLogger() override; 110 OfflineEventLogger* GetLogger() override;
113 111
114 protected: 112 protected:
115 // Adding a protected constructor for testing-only purposes in 113 // Adding a protected constructor for testing-only purposes in
116 // offline_page_storage_manager_unittest.cc 114 // offline_page_storage_manager_unittest.cc
117 OfflinePageModelImpl(); 115 OfflinePageModelImpl();
118 116
119 private: 117 private:
120 FRIEND_TEST_ALL_PREFIXES(OfflinePageModelImplTest, MarkPageForDeletion); 118 FRIEND_TEST_ALL_PREFIXES(OfflinePageModelImplTest, MarkPageForDeletion);
121 119
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 base::Clock* testing_clock_; 285 base::Clock* testing_clock_;
288 286
289 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_; 287 base::WeakPtrFactory<OfflinePageModelImpl> weak_ptr_factory_;
290 288
291 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl); 289 DISALLOW_COPY_AND_ASSIGN(OfflinePageModelImpl);
292 }; 290 };
293 291
294 } // namespace offline_pages 292 } // namespace offline_pages
295 293
296 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_ 294 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_MODEL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698