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

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

Issue 2225213002: Make GetBestPageForOnlineURL async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 4 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_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const OfflinePageItem* MaybeGetPageByOfflineId( 52 const OfflinePageItem* MaybeGetPageByOfflineId(
53 int64_t offline_id) const override; 53 int64_t offline_id) const override;
54 void GetPageByOfflineURL( 54 void GetPageByOfflineURL(
55 const GURL& offline_url, 55 const GURL& offline_url,
56 const SingleOfflinePageItemCallback& callback) override; 56 const SingleOfflinePageItemCallback& callback) override;
57 const OfflinePageItem* MaybeGetPageByOfflineURL( 57 const OfflinePageItem* MaybeGetPageByOfflineURL(
58 const GURL& offline_url) const override; 58 const GURL& offline_url) const override;
59 void GetPagesByOnlineURL( 59 void GetPagesByOnlineURL(
60 const GURL& online_url, 60 const GURL& online_url,
61 const MultipleOfflinePageItemCallback& callback) override; 61 const MultipleOfflinePageItemCallback& callback) override;
62 void GetBestPageForOnlineURL(
63 const GURL& online_url,
64 const SingleOfflinePageItemCallback callback) override;
65 const OfflinePageItem* MaybeGetBestPageForOnlineURL( 62 const OfflinePageItem* MaybeGetBestPageForOnlineURL(
66 const GURL& online_url) const override; 63 const GURL& online_url) const override;
67 void CheckMetadataConsistency() override; 64 void CheckMetadataConsistency() override;
68 void ExpirePages(const std::vector<int64_t>& offline_ids, 65 void ExpirePages(const std::vector<int64_t>& offline_ids,
69 const base::Time& expiration_time, 66 const base::Time& expiration_time,
70 const base::Callback<void(bool)>& callback) override; 67 const base::Callback<void(bool)>& callback) override;
71 ClientPolicyController* GetPolicyController() override; 68 ClientPolicyController* GetPolicyController() override;
72 bool is_loaded() const override; 69 bool is_loaded() const override;
73 OfflineEventLogger* GetLogger() override; 70 OfflineEventLogger* GetLogger() override;
74 71
75 private: 72 private:
76 std::vector<int64_t> offline_ids_; 73 std::vector<int64_t> offline_ids_;
77 }; 74 };
78 75
79 } // namespace offline_pages 76 } // namespace offline_pages
80 77
81 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_ 78 #endif // COMPONENTS_OFFLINE_PAGES_STUB_OFFLINE_PAGE_MODEL_H_
OLDNEW
« no previous file with comments | « components/offline_pages/offline_page_model_impl.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