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

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

Issue 2565023002: Use GURLs in Physical Web data source (Closed)
Patch Set: Register missing dependencies 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 side-by-side diff with in-line comments
Download patch
Index: components/physical_web/data_source/physical_web_data_source_impl.h
diff --git a/components/physical_web/data_source/physical_web_data_source_impl.h b/components/physical_web/data_source/physical_web_data_source_impl.h
index 3f411834c03ee6a386225b856d782da643ce4309..a9326d2e0972794f2533703315434ba289cddf38 100644
--- a/components/physical_web/data_source/physical_web_data_source_impl.h
+++ b/components/physical_web/data_source/physical_web_data_source_impl.h
@@ -7,6 +7,8 @@
#include "base/observer_list.h"
#include "components/physical_web/data_source/physical_web_data_source.h"
+class GURL;
+
namespace physical_web {
class PhysicalWebListener;
@@ -23,13 +25,13 @@ class PhysicalWebDataSourceImpl : public PhysicalWebDataSource {
void UnregisterListener(PhysicalWebListener* physical_web_listener) override;
// Notify all registered listeners that a URL has been found.
- void NotifyOnFound(const std::string& url);
+ void NotifyOnFound(const GURL& url);
// Notify all registered listeners that a URL has been lost.
- void NotifyOnLost(const std::string& url);
+ void NotifyOnLost(const GURL& url);
// Notify all registered listeners that a distance has changed for a URL.
- void NotifyOnDistanceChanged(const std::string& url,
+ void NotifyOnDistanceChanged(const GURL& url,
double distance_estimate);
private:

Powered by Google App Engine
This is Rietveld 408576698