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" |
(...skipping 13 matching lines...) Expand all Loading... | |
24 | 24 |
25 // Starts scanning for Physical Web URLs. If |network_request_enabled| is | 25 // Starts scanning for Physical Web URLs. If |network_request_enabled| is |
26 // true, discovered URLs will be sent to a resolution service. | 26 // true, discovered URLs will be sent to a resolution service. |
27 void StartDiscovery(bool network_request_enabled) override; | 27 void StartDiscovery(bool network_request_enabled) override; |
28 | 28 |
29 // Stops scanning for Physical Web URLs and clears cached URL content. | 29 // Stops scanning for Physical Web URLs and clears cached URL content. |
30 void StopDiscovery() override; | 30 void StopDiscovery() override; |
31 | 31 |
32 // Returns a list of resolved URLs and associated page metadata. If network | 32 // Returns a list of resolved URLs and associated page metadata. If network |
33 // requests are disabled, the list will be empty. | 33 // requests are disabled, the list will be empty. |
34 std::unique_ptr<base::ListValue> GetMetadata() override; | 34 std::unique_ptr<base::ListValue> GetMetadataListValue() override; |
mattreynolds
2016/12/12 19:41:29
(should be GetMetadata)
Also, IOSChromePhysicalWe
| |
35 | 35 |
36 // Returns boolean |true| if network requests are disabled and there are one | 36 // Returns boolean |true| if network requests are disabled and there are one |
37 // or more discovered URLs that have not been sent to the resolution service. | 37 // or more discovered URLs that have not been sent to the resolution service. |
38 bool HasUnresolvedDiscoveries() override; | 38 bool HasUnresolvedDiscoveries() override; |
39 | 39 |
40 private: | 40 private: |
41 // Scanner for nearby Physical Web URL devices. | 41 // Scanner for nearby Physical Web URL devices. |
42 base::scoped_nsobject<PhysicalWebScanner> scanner_; | 42 base::scoped_nsobject<PhysicalWebScanner> scanner_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(IOSChromePhysicalWebDataSource); | 44 DISALLOW_COPY_AND_ASSIGN(IOSChromePhysicalWebDataSource); |
45 }; | 45 }; |
46 | 46 |
47 #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 |