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

Side by Side Diff: ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.mm

Issue 2349483002: Implement Physical Web listener registration (Closed)
Patch Set: Fix build error Created 4 years, 3 months 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 | « ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.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 #import "ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h" 5 #import "ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #import "ios/chrome/common/physical_web/physical_web_scanner.h" 9 #import "ios/chrome/common/physical_web/physical_web_scanner.h"
10 10
(...skipping 27 matching lines...) Expand all
38 std::unique_ptr<base::ListValue> IOSChromePhysicalWebDataSource::GetMetadata() { 38 std::unique_ptr<base::ListValue> IOSChromePhysicalWebDataSource::GetMetadata() {
39 if (!scanner_) { 39 if (!scanner_) {
40 return base::MakeUnique<base::ListValue>(); 40 return base::MakeUnique<base::ListValue>();
41 } 41 }
42 return [scanner_ metadata]; 42 return [scanner_ metadata];
43 } 43 }
44 44
45 bool IOSChromePhysicalWebDataSource::HasUnresolvedDiscoveries() { 45 bool IOSChromePhysicalWebDataSource::HasUnresolvedDiscoveries() {
46 return [scanner_ unresolvedBeaconsCount] > 0; 46 return [scanner_ unresolvedBeaconsCount] > 0;
47 } 47 }
48
49 void IOSChromePhysicalWebDataSource::RegisterListener(
50 PhysicalWebListener* physical_web_listener) {}
51
52 void IOSChromePhysicalWebDataSource::UnregisterListener(
53 PhysicalWebListener* physical_web_listener) {}
OLDNEW
« no previous file with comments | « ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698