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

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

Issue 2494033003: Move IOSChromePhysicalWebDataSource to ios/chrome/browser (Closed)
Patch Set: Created 4 years, 1 month 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 #import "ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h" 5 #import "ios/chrome/browser/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
11 IOSChromePhysicalWebDataSource::IOSChromePhysicalWebDataSource() {} 11 IOSChromePhysicalWebDataSource::IOSChromePhysicalWebDataSource() {}
12 12
13 IOSChromePhysicalWebDataSource::~IOSChromePhysicalWebDataSource() { 13 IOSChromePhysicalWebDataSource::~IOSChromePhysicalWebDataSource() {
14 StopDiscovery(); 14 StopDiscovery();
15 } 15 }
(...skipping 25 matching lines...) Expand all
41 std::unique_ptr<base::ListValue> IOSChromePhysicalWebDataSource::GetMetadata() { 41 std::unique_ptr<base::ListValue> IOSChromePhysicalWebDataSource::GetMetadata() {
42 if (!scanner_) { 42 if (!scanner_) {
43 return base::MakeUnique<base::ListValue>(); 43 return base::MakeUnique<base::ListValue>();
44 } 44 }
45 return [scanner_ metadata]; 45 return [scanner_ metadata];
46 } 46 }
47 47
48 bool IOSChromePhysicalWebDataSource::HasUnresolvedDiscoveries() { 48 bool IOSChromePhysicalWebDataSource::HasUnresolvedDiscoveries() {
49 return [scanner_ unresolvedBeaconsCount] > 0; 49 return [scanner_ unresolvedBeaconsCount] > 0;
50 } 50 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h ('k') | ios/chrome/common/physical_web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698