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

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

Issue 2503853004: Support getting offline pages also by original URL (Closed)
Patch Set: Make NTP redirect work per comment Created 4 years, 1 month 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_STUB_OFFLINE_PAGE_MODEL_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_
6 #define COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ 6 #define COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const CheckPagesExistOfflineCallback& callback) override; 47 const CheckPagesExistOfflineCallback& callback) override;
48 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override; 48 void GetAllPages(const MultipleOfflinePageItemCallback& callback) override;
49 void GetAllPagesWithExpired( 49 void GetAllPagesWithExpired(
50 const MultipleOfflinePageItemCallback& callback) override; 50 const MultipleOfflinePageItemCallback& callback) override;
51 void GetOfflineIdsForClientId( 51 void GetOfflineIdsForClientId(
52 const ClientId& client_id, 52 const ClientId& client_id,
53 const MultipleOfflineIdCallback& callback) override; 53 const MultipleOfflineIdCallback& callback) override;
54 void GetPageByOfflineId( 54 void GetPageByOfflineId(
55 int64_t offline_id, 55 int64_t offline_id,
56 const SingleOfflinePageItemCallback& callback) override; 56 const SingleOfflinePageItemCallback& callback) override;
57 void GetPagesByOnlineURL( 57 void GetPagesByURL(
58 const GURL& online_url, 58 const GURL& url,
59 URLSearchMode url_search_mode,
59 const MultipleOfflinePageItemCallback& callback) override; 60 const MultipleOfflinePageItemCallback& callback) override;
60 void ExpirePages(const std::vector<int64_t>& offline_ids, 61 void ExpirePages(const std::vector<int64_t>& offline_ids,
61 const base::Time& expiration_time, 62 const base::Time& expiration_time,
62 const base::Callback<void(bool)>& callback) override; 63 const base::Callback<void(bool)>& callback) override;
63 ClientPolicyController* GetPolicyController() override; 64 ClientPolicyController* GetPolicyController() override;
64 bool is_loaded() const override; 65 bool is_loaded() const override;
65 OfflineEventLogger* GetLogger() override; 66 OfflineEventLogger* GetLogger() override;
66 67
67 private: 68 private:
68 ClientPolicyController policy_controller_; 69 ClientPolicyController policy_controller_;
69 std::vector<int64_t> offline_ids_; 70 std::vector<int64_t> offline_ids_;
70 }; 71 };
71 72
72 } // namespace offline_pages 73 } // namespace offline_pages
73 74
74 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ 75 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_
OLDNEW
« no previous file with comments | « components/offline_pages/offline_page_model_impl_unittest.cc ('k') | components/offline_pages/stub_offline_page_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698