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

Unified Diff: content/browser/presentation/presentation_service_impl.h

Issue 2386633003: [Media Router] Convert MediaRouter to use GURL for presentation URLs. (Closed)
Patch Set: Respond to dcheng@ comment Created 4 years, 2 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: content/browser/presentation/presentation_service_impl.h
diff --git a/content/browser/presentation/presentation_service_impl.h b/content/browser/presentation/presentation_service_impl.h
index dea2c88c37d89940f495810411836156aac20d6c..10d08499c161db6c75173548b31af16e76abc597 100644
--- a/content/browser/presentation/presentation_service_impl.h
+++ b/content/browser/presentation/presentation_service_impl.h
@@ -110,18 +110,17 @@ class CONTENT_EXPORT PresentationServiceImpl
class CONTENT_EXPORT ScreenAvailabilityListenerImpl
: public PresentationScreenAvailabilityListener {
public:
- ScreenAvailabilityListenerImpl(
- const std::string& availability_url,
- PresentationServiceImpl* service);
+ ScreenAvailabilityListenerImpl(const GURL& availability_url,
+ PresentationServiceImpl* service);
~ScreenAvailabilityListenerImpl() override;
// PresentationScreenAvailabilityListener implementation.
- std::string GetAvailabilityUrl() const override;
+ GURL GetAvailabilityUrl() const override;
void OnScreenAvailabilityChanged(bool available) override;
void OnScreenAvailabilityNotSupported() override;
private:
- const std::string availability_url_;
+ const GURL availability_url_;
PresentationServiceImpl* const service_;
};
@@ -256,10 +255,10 @@ class CONTENT_EXPORT PresentationServiceImpl
// availability) to.
blink::mojom::PresentationServiceClientPtr client_;
- std::vector<std::string> default_presentation_urls_;
+ std::vector<GURL> default_presentation_urls_;
using ScreenAvailabilityListenerMap =
- std::map<std::string, std::unique_ptr<ScreenAvailabilityListenerImpl>>;
+ std::map<GURL, std::unique_ptr<ScreenAvailabilityListenerImpl>>;
ScreenAvailabilityListenerMap screen_availability_listeners_;
// For StartSession requests.
« no previous file with comments | « chrome/test/media_router/media_router_e2e_browsertest.cc ('k') | content/browser/presentation/presentation_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698