| OLD | NEW |
| 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 #ifndef IOS_CHROME_BROWSER_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_ | 5 #ifndef IOS_CHROME_BROWSER_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_ |
| 6 #define IOS_CHROME_BROWSER_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_ | 6 #define IOS_CHROME_BROWSER_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #import "base/mac/scoped_nsobject.h" | 9 #import "base/mac/scoped_nsobject.h" |
| 10 #include "components/physical_web/data_source/physical_web_data_source_impl.h" | 10 #include "components/physical_web/data_source/physical_web_data_source_impl.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class ListValue; | 13 class ListValue; |
| 14 } | 14 } |
| 15 class PhysicalWebListener; | |
| 16 | 15 |
| 17 @class PhysicalWebScanner; | 16 @class PhysicalWebScanner; |
| 18 | 17 |
| 19 // iOS implementation of PhysicalWebDataSource | 18 // iOS implementation of PhysicalWebDataSource |
| 20 class IOSChromePhysicalWebDataSource | 19 class IOSChromePhysicalWebDataSource |
| 21 : public physical_web::PhysicalWebDataSourceImpl { | 20 : public physical_web::PhysicalWebDataSourceImpl { |
| 22 public: | 21 public: |
| 23 IOSChromePhysicalWebDataSource(); | 22 IOSChromePhysicalWebDataSource(); |
| 24 ~IOSChromePhysicalWebDataSource() override; | 23 ~IOSChromePhysicalWebDataSource() override; |
| 25 | 24 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 39 bool HasUnresolvedDiscoveries() override; | 38 bool HasUnresolvedDiscoveries() override; |
| 40 | 39 |
| 41 private: | 40 private: |
| 42 // Scanner for nearby Physical Web URL devices. | 41 // Scanner for nearby Physical Web URL devices. |
| 43 base::scoped_nsobject<PhysicalWebScanner> scanner_; | 42 base::scoped_nsobject<PhysicalWebScanner> scanner_; |
| 44 | 43 |
| 45 DISALLOW_COPY_AND_ASSIGN(IOSChromePhysicalWebDataSource); | 44 DISALLOW_COPY_AND_ASSIGN(IOSChromePhysicalWebDataSource); |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 #endif // IOS_CHROME_COMMON_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_ | 47 #endif // IOS_CHROME_COMMON_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_ |
| OLD | NEW |