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

Unified Diff: components/physical_web/data_source/physical_web_data_source.h

Issue 2231983002: Expose Physical Web data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build errors Created 4 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: components/physical_web/data_source/physical_web_data_source.h
diff --git a/components/physical_web/data_source/physical_web_data_source.h b/components/physical_web/data_source/physical_web_data_source.h
index 1fa11407fae736e3333edaa026697b54c9d1a824..6225b7aab9953d5fdae8ea61d4c5b3474b777781 100644
--- a/components/physical_web/data_source/physical_web_data_source.h
+++ b/components/physical_web/data_source/physical_web_data_source.h
@@ -11,6 +11,8 @@ namespace base {
class ListValue;
}
+class PhysicalWebListener;
+
// Helper class for accessing Physical Web metadata and controlling the scanner.
class PhysicalWebDataSource {
public:
@@ -35,6 +37,13 @@ class PhysicalWebDataSource {
// If discovery is inactive or network requests are enabled, it will always
// return false.
virtual bool HasUnresolvedDiscoveries() = 0;
+
+ // Register for changes to Physical Web URLs and associated page metadata.
+ virtual void RegisterListener(PhysicalWebListener* physical_web_listener) = 0;
+
+ // Unregister for changes to Physical Web URLs and associated page metadata.
+ virtual void UnregisterListener(
+ PhysicalWebListener* physical_web_listener) = 0;
};
#endif // COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_PHYSICAL_WEB_DATA_SOURCE_H_
« no previous file with comments | « components/physical_web/data_source/BUILD.gn ('k') | components/physical_web/data_source/physical_web_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698