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

Side by Side Diff: chrome/browser/media/router/presentation_helper.cc

Issue 1132903002: [MediaRouter] Add implementation of PresentationServiceDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_ID_H_ 5 #include "chrome/browser/media/router/presentation_helper.h"
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_ID_H_
7 6
8 #include <string> 7 #include "url/gurl.h"
9 8
10 namespace media_router { 9 namespace media_router {
11 10
12 using MediaRouteId = std::string; 11 bool IsValidPresentationUrl(const std::string& url) {
12 GURL gurl(url);
13 return gurl.is_valid() && gurl.SchemeIsHTTPOrHTTPS();
14 }
13 15
14 } // namespace media_router 16 } // namespace media_router
15
16 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_ID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698