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

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: 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..2df325a289b149bcb29f13956825b3ee4c91a573 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
@@ -6,6 +6,7 @@
#include "base/observer_list.h"
#include "components/physical_web/data_source/physical_web_data_source.h"
+#include "url/gurl.h"
namespace physical_web {
@@ -23,13 +24,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