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

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

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 #include "components/offline_pages/core/stub_offline_page_model.h" 5 #include "components/offline_pages/core/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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void StubOfflinePageModel::GetPageByOfflineId( 42 void StubOfflinePageModel::GetPageByOfflineId(
43 int64_t offline_id, 43 int64_t offline_id,
44 const SingleOfflinePageItemCallback& callback) {} 44 const SingleOfflinePageItemCallback& callback) {}
45 void StubOfflinePageModel::GetPagesByURL( 45 void StubOfflinePageModel::GetPagesByURL(
46 const GURL& url, 46 const GURL& url,
47 URLSearchMode url_search_mode, 47 URLSearchMode url_search_mode,
48 const MultipleOfflinePageItemCallback& callback) {} 48 const MultipleOfflinePageItemCallback& callback) {}
49 ClientPolicyController* StubOfflinePageModel::GetPolicyController() { 49 ClientPolicyController* StubOfflinePageModel::GetPolicyController() {
50 return &policy_controller_; 50 return &policy_controller_;
51 } 51 }
52 bool StubOfflinePageModel::is_loaded() const {
53 return true;
54 }
55 OfflineEventLogger* StubOfflinePageModel::GetLogger() { 52 OfflineEventLogger* StubOfflinePageModel::GetLogger() {
56 return nullptr; 53 return nullptr;
57 } 54 }
58 } // namespace offline_pages 55 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698