| OLD | NEW |
| (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 |
| OLD | NEW |