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

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: proper deps. 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 namespace {} // namespace
Marc Treib 2016/11/23 09:47:52 ?
vitaliii 2016/11/23 14:16:52 Done.
12
13 FakePhysicalWebDataSource::FakePhysicalWebDataSource() = default;
14
15 FakePhysicalWebDataSource::~FakePhysicalWebDataSource() = default;
16
17 void FakePhysicalWebDataSource::StartDiscovery(bool network_request_enabled) {
18 NOTREACHED();
19 }
20
21 void FakePhysicalWebDataSource::StopDiscovery() {
22 NOTREACHED();
23 }
24
25 std::unique_ptr<base::ListValue> FakePhysicalWebDataSource::GetMetadata() {
26 return metadata_->CreateDeepCopy();
27 }
28
29 bool FakePhysicalWebDataSource::HasUnresolvedDiscoveries() {
30 NOTREACHED();
31 return false;
32 }
33
34 void FakePhysicalWebDataSource::RegisterListener(
35 PhysicalWebListener* physical_web_listener) {
36 // Ignored. Instead notify the provider directly.
37 }
38
39 void FakePhysicalWebDataSource::UnregisterListener(
40 PhysicalWebListener* physical_web_listener) {
41 // Ignored.
42 }
43
44 void FakePhysicalWebDataSource::SetMetadata(
45 std::unique_ptr<base::ListValue> metadata) {
46 metadata_ = std::move(metadata);
47 }
48
49 } // namespace ntp_snippets
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698