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

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

Issue 2528893003: [PhysicalWeb] Add physical_web namespace. (Closed)
Patch Set: Created 4 years 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 namespace physical_web {
15
14 class PhysicalWebListener; 16 class PhysicalWebListener;
15 17
16 // Dictionary keys for reading Physical Web URL metadata. 18 // Dictionary keys for reading Physical Web URL metadata.
17 extern const char kPhysicalWebDescriptionKey[]; 19 extern const char kDescriptionKey[];
18 extern const char kPhysicalWebDistanceEstimateKey[]; 20 extern const char kDistanceEstimateKey[];
19 extern const char kPhysicalWebGroupIdKey[]; 21 extern const char kGroupIdKey[];
20 extern const char kPhysicalWebIconUrlKey[]; 22 extern const char kIconUrlKey[];
21 extern const char kPhysicalWebResolvedUrlKey[]; 23 extern const char kResolvedUrlKey[];
22 extern const char kPhysicalWebScanTimestampKey[]; 24 extern const char kScanTimestampKey[];
23 extern const char kPhysicalWebScannedUrlKey[]; 25 extern const char kScannedUrlKey[];
24 extern const char kPhysicalWebTitleKey[]; 26 extern const char kTitleKey[];
25 27
26 // Helper class for accessing Physical Web metadata and controlling the scanner. 28 // Helper class for accessing Physical Web metadata and controlling the scanner.
27 class PhysicalWebDataSource { 29 class PhysicalWebDataSource {
28 public: 30 public:
29 virtual ~PhysicalWebDataSource() {} 31 virtual ~PhysicalWebDataSource() {}
30 32
31 // Starts scanning for Physical Web URLs. If |network_request_enabled| is 33 // Starts scanning for Physical Web URLs. If |network_request_enabled| is
32 // true, discovered URLs will be sent to a resolution service. 34 // true, discovered URLs will be sent to a resolution service.
33 virtual void StartDiscovery(bool network_request_enabled) = 0; 35 virtual void StartDiscovery(bool network_request_enabled) = 0;
34 36
(...skipping 14 matching lines...) Expand all
49 virtual bool HasUnresolvedDiscoveries() = 0; 51 virtual bool HasUnresolvedDiscoveries() = 0;
50 52
51 // Register for changes to Physical Web URLs and associated page metadata. 53 // Register for changes to Physical Web URLs and associated page metadata.
52 virtual void RegisterListener(PhysicalWebListener* physical_web_listener) = 0; 54 virtual void RegisterListener(PhysicalWebListener* physical_web_listener) = 0;
53 55
54 // Unregister for changes to Physical Web URLs and associated page metadata. 56 // Unregister for changes to Physical Web URLs and associated page metadata.
55 virtual void UnregisterListener( 57 virtual void UnregisterListener(
56 PhysicalWebListener* physical_web_listener) = 0; 58 PhysicalWebListener* physical_web_listener) = 0;
57 }; 59 };
58 60
61 } // namespace physical_web
62
59 #endif // COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_PHYSICAL_WEB_DATA_SOURCE_H_ 63 #endif // COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_PHYSICAL_WEB_DATA_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698