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

Side by Side Diff: components/ntp_snippets/physical_web_pages/fake_physical_web_data_source.cc

Issue 2517113005: [NTP::PhysicalWeb] Wire Physical Web provider to the data source. (Closed)
Patch Set: rebase and treib@ comment. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/ntp_snippets/physical_web_pages/fake_physical_web_data_sour ce.h"
6
7 using base::Value;
8
9 namespace ntp_snippets {
10
11 FakePhysicalWebDataSource::FakePhysicalWebDataSource() = default;
12
13 FakePhysicalWebDataSource::~FakePhysicalWebDataSource() = default;
14
15 void FakePhysicalWebDataSource::StartDiscovery(bool network_request_enabled) {
16 NOTREACHED();
17 }
18
19 void FakePhysicalWebDataSource::StopDiscovery() {
20 NOTREACHED();
21 }
22
23 std::unique_ptr<base::ListValue> FakePhysicalWebDataSource::GetMetadata() {
24 return metadata_->CreateDeepCopy();
25 }
26
27 bool FakePhysicalWebDataSource::HasUnresolvedDiscoveries() {
28 NOTREACHED();
29 return false;
30 }
31
32 void FakePhysicalWebDataSource::RegisterListener(
33 PhysicalWebListener* physical_web_listener) {
34 // Ignored. Instead notify the provider directly.
35 }
36
37 void FakePhysicalWebDataSource::UnregisterListener(
38 PhysicalWebListener* physical_web_listener) {
39 // Ignored.
40 }
41
42 void FakePhysicalWebDataSource::SetMetadata(
43 std::unique_ptr<base::ListValue> metadata) {
44 metadata_ = std::move(metadata);
45 }
46
47 } // namespace ntp_snippets
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698