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

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

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
« no previous file with comments | « components/offline_pages/stub_offline_page_model.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "components/offline_pages/stub_offline_page_model.h" 5 #include "components/offline_pages/stub_offline_page_model.h"
6 6
7 namespace offline_pages { 7 namespace offline_pages {
8 8
9 StubOfflinePageModel::StubOfflinePageModel() {} 9 StubOfflinePageModel::StubOfflinePageModel() {}
10 StubOfflinePageModel::~StubOfflinePageModel() {} 10 StubOfflinePageModel::~StubOfflinePageModel() {}
(...skipping 26 matching lines...) Expand all
37 void StubOfflinePageModel::GetAllPages( 37 void StubOfflinePageModel::GetAllPages(
38 const MultipleOfflinePageItemCallback& callback) {} 38 const MultipleOfflinePageItemCallback& callback) {}
39 void StubOfflinePageModel::GetAllPagesWithExpired( 39 void StubOfflinePageModel::GetAllPagesWithExpired(
40 const MultipleOfflinePageItemCallback& callback) {} 40 const MultipleOfflinePageItemCallback& callback) {}
41 void StubOfflinePageModel::GetOfflineIdsForClientId( 41 void StubOfflinePageModel::GetOfflineIdsForClientId(
42 const ClientId& client_id, 42 const ClientId& client_id,
43 const MultipleOfflineIdCallback& callback) {} 43 const MultipleOfflineIdCallback& callback) {}
44 void StubOfflinePageModel::GetPageByOfflineId( 44 void StubOfflinePageModel::GetPageByOfflineId(
45 int64_t offline_id, 45 int64_t offline_id,
46 const SingleOfflinePageItemCallback& callback) {} 46 const SingleOfflinePageItemCallback& callback) {}
47 void StubOfflinePageModel::GetPagesByOnlineURL( 47 void StubOfflinePageModel::GetPagesByURL(
48 const GURL& online_url, 48 const GURL& url,
49 URLSearchMode url_search_mode,
49 const MultipleOfflinePageItemCallback& callback) {} 50 const MultipleOfflinePageItemCallback& callback) {}
50 void StubOfflinePageModel::ExpirePages( 51 void StubOfflinePageModel::ExpirePages(
51 const std::vector<int64_t>& offline_ids, 52 const std::vector<int64_t>& offline_ids,
52 const base::Time& expiration_time, 53 const base::Time& expiration_time,
53 const base::Callback<void(bool)>& callback) {} 54 const base::Callback<void(bool)>& callback) {}
54 ClientPolicyController* StubOfflinePageModel::GetPolicyController() { 55 ClientPolicyController* StubOfflinePageModel::GetPolicyController() {
55 return &policy_controller_; 56 return &policy_controller_;
56 } 57 }
57 bool StubOfflinePageModel::is_loaded() const { 58 bool StubOfflinePageModel::is_loaded() const {
58 return true; 59 return true;
59 } 60 }
60 OfflineEventLogger* StubOfflinePageModel::GetLogger() { 61 OfflineEventLogger* StubOfflinePageModel::GetLogger() {
61 return nullptr; 62 return nullptr;
62 } 63 }
63 } // namespace offline_pages 64 } // namespace offline_pages
OLDNEW
« no previous file with comments | « components/offline_pages/stub_offline_page_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698