| OLD | NEW |
| 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_SOURCE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_HELPER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_HELPER_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/media/router/media_source.h" | 10 #include "chrome/browser/media/router/media_source.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // source tab. Returns a non-positive value on error. | 33 // source tab. Returns a non-positive value on error. |
| 34 int TabIdFromMediaSource(const MediaSource& source); | 34 int TabIdFromMediaSource(const MediaSource& source); |
| 35 | 35 |
| 36 // Checks that |source| is a parseable URN and is of a known type. | 36 // Checks that |source| is a parseable URN and is of a known type. |
| 37 // Does not deeper protocol-level syntax checks. | 37 // Does not deeper protocol-level syntax checks. |
| 38 bool IsValidMediaSource(const MediaSource& source); | 38 bool IsValidMediaSource(const MediaSource& source); |
| 39 | 39 |
| 40 // Returns true if |url| is a valid presentation URL. | 40 // Returns true if |url| is a valid presentation URL. |
| 41 bool IsValidPresentationUrl(const GURL& url); | 41 bool IsValidPresentationUrl(const GURL& url); |
| 42 | 42 |
| 43 // Returns true if |presentation_id| is an ID used by auto-join requests. |
| 44 bool IsAutoJoinPresentationId(const std::string& presentation_id); |
| 45 |
| 43 } // namespace media_router | 46 } // namespace media_router |
| 44 | 47 |
| 45 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_HELPER_H_ | 48 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_HELPER_H_ |
| OLD | NEW |