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

Unified Diff: components/physical_web/data_source/physical_web_listener.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_listener.h
diff --git a/components/physical_web/data_source/physical_web_listener.h b/components/physical_web/data_source/physical_web_listener.h
index 910737e80a592f6eb50b8f247ff002715d37e2c3..3e74bc159e950bc58860a5adb76e6ac0bde7a7ea 100644
--- a/components/physical_web/data_source/physical_web_listener.h
+++ b/components/physical_web/data_source/physical_web_listener.h
@@ -5,7 +5,7 @@
#ifndef COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_PHYSICAL_WEB_LISTENER_H_
#define COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_PHYSICAL_WEB_LISTENER_H_
-#include <string>
+class GURL;
namespace physical_web {
@@ -14,15 +14,14 @@ class PhysicalWebListener {
public:
// OnFound(url) will be called when a new URL has been found.
- virtual void OnFound(const std::string& url) = 0;
+ virtual void OnFound(const GURL& url) = 0;
// OnLost(url) will be called when a URL can no longer be seen.
- virtual void OnLost(const std::string& url) = 0;
+ virtual void OnLost(const GURL& url) = 0;
// OnDistanceChagned(url, distance_estimate) will be called when the distance
// estimate is changed for the URL.
- virtual void OnDistanceChanged(const std::string& url,
- double distance_estimate) = 0;
+ virtual void OnDistanceChanged(const GURL& url, double distance_estimate) = 0;
};
} // namespace physical_web

Powered by Google App Engine
This is Rietveld 408576698