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

Side by Side Diff: components/physical_web/data_source/physical_web_data_source.h

Issue 2403423005: Expose Physical Web metadata to native clients over JNI (Closed)
Patch Set: remove unit test 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 #ifndef COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_PHYSICAL_WEB_DATA_SOURCE_H_ 5 #ifndef COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_PHYSICAL_WEB_DATA_SOURCE_H_
6 #define COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_PHYSICAL_WEB_DATA_SOURCE_H_ 6 #define COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_PHYSICAL_WEB_DATA_SOURCE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 namespace base { 10 namespace base {
11 class ListValue; 11 class ListValue;
12 } 12 }
13 13
14 class PhysicalWebListener; 14 class PhysicalWebListener;
15 15
16 // Dictionary keys for reading Physical Web URL metadata.
17 extern const char kPhysicalWebDescriptionKey[];
18 extern const char kPhysicalWebDistanceEstimateKey[];
19 extern const char kPhysicalWebGroupIdKey[];
20 extern const char kPhysicalWebIconUrlKey[];
21 extern const char kPhysicalWebResolvedUrlKey[];
22 extern const char kPhysicalWebScanTimestampKey[];
23 extern const char kPhysicalWebScannedUrlKey[];
24 extern const char kPhysicalWebTitleKey[];
25
16 // Helper class for accessing Physical Web metadata and controlling the scanner. 26 // Helper class for accessing Physical Web metadata and controlling the scanner.
17 class PhysicalWebDataSource { 27 class PhysicalWebDataSource {
18 public: 28 public:
19 virtual ~PhysicalWebDataSource() {} 29 virtual ~PhysicalWebDataSource() {}
20 30
21 // Starts scanning for Physical Web URLs. If |network_request_enabled| is 31 // Starts scanning for Physical Web URLs. If |network_request_enabled| is
22 // true, discovered URLs will be sent to a resolution service. 32 // true, discovered URLs will be sent to a resolution service.
23 virtual void StartDiscovery(bool network_request_enabled) = 0; 33 virtual void StartDiscovery(bool network_request_enabled) = 0;
24 34
25 // Stops scanning for Physical Web URLs and clears cached URL content. 35 // Stops scanning for Physical Web URLs and clears cached URL content.
(...skipping 14 matching lines...) Expand all
40 50
41 // Register for changes to Physical Web URLs and associated page metadata. 51 // Register for changes to Physical Web URLs and associated page metadata.
42 virtual void RegisterListener(PhysicalWebListener* physical_web_listener) = 0; 52 virtual void RegisterListener(PhysicalWebListener* physical_web_listener) = 0;
43 53
44 // Unregister for changes to Physical Web URLs and associated page metadata. 54 // Unregister for changes to Physical Web URLs and associated page metadata.
45 virtual void UnregisterListener( 55 virtual void UnregisterListener(
46 PhysicalWebListener* physical_web_listener) = 0; 56 PhysicalWebListener* physical_web_listener) = 0;
47 }; 57 };
48 58
49 #endif // COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_PHYSICAL_WEB_DATA_SOURCE_H_ 59 #endif // COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_PHYSICAL_WEB_DATA_SOURCE_H_
OLDNEW
« no previous file with comments | « components/physical_web/data_source/BUILD.gn ('k') | components/physical_web/data_source/physical_web_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698