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 17 matching lines...) Expand all Loading... | |
28 // true, discovered URLs will be sent to a resolution service. | 28 // true, discovered URLs will be sent to a resolution service. |
29 void StartDiscovery(bool network_request_enabled) override; | 29 void StartDiscovery(bool network_request_enabled) override; |
30 | 30 |
31 // Stops scanning for Physical Web URLs and clears cached URL content. | 31 // Stops scanning for Physical Web URLs and clears cached URL content. |
32 void StopDiscovery() override; | 32 void StopDiscovery() override; |
33 | 33 |
34 // Returns a list of resolved URLs and associated page metadata. If network | 34 // Returns a list of resolved URLs and associated page metadata. If network |
35 // requests are disabled, the list will be empty. | 35 // requests are disabled, the list will be empty. |
36 std::unique_ptr<base::ListValue> GetMetadata() override; | 36 std::unique_ptr<base::ListValue> GetMetadata() override; |
37 | 37 |
38 // Returns a list of resolved URLs and associated page metadata. If network | |
39 // requests are disabled, the list will be empty. | |
40 std::unique_ptr<physical_web::MetadataList> GetMetadataList() override; | |
mattreynolds
2017/01/11 23:04:52
This file needs #include "components/physical_web/
cco3
2017/01/11 23:32:41
Done.
| |
41 | |
38 // Returns boolean |true| if network requests are disabled and there are one | 42 // Returns boolean |true| if network requests are disabled and there are one |
39 // or more discovered URLs that have not been sent to the resolution service. | 43 // or more discovered URLs that have not been sent to the resolution service. |
40 bool HasUnresolvedDiscoveries() override; | 44 bool HasUnresolvedDiscoveries() override; |
41 | 45 |
42 private: | 46 private: |
43 // Scanner for nearby Physical Web URL devices. | 47 // Scanner for nearby Physical Web URL devices. |
44 base::scoped_nsobject<PhysicalWebScanner> scanner_; | 48 base::scoped_nsobject<PhysicalWebScanner> scanner_; |
45 | 49 |
46 // Utility for fetching initial application state for logging purposes. | 50 // Utility for fetching initial application state for logging purposes. |
47 base::scoped_nsobject<PhysicalWebInitialStateRecorder> initialStateRecorder_; | 51 base::scoped_nsobject<PhysicalWebInitialStateRecorder> initialStateRecorder_; |
48 | 52 |
49 DISALLOW_COPY_AND_ASSIGN(IOSChromePhysicalWebDataSource); | 53 DISALLOW_COPY_AND_ASSIGN(IOSChromePhysicalWebDataSource); |
50 }; | 54 }; |
51 | 55 |
52 #endif // IOS_CHROME_BROWSER_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H _ | 56 #endif // IOS_CHROME_BROWSER_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H _ |
OLD | NEW |