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

Side by Side Diff: chrome/browser/media/router/media_source_helper.h

Issue 2517833004: [MR] Cancel auto-switching from tab mirroring to Cast SDK at page navigation based on user pref (Closed)
Patch Set: Rebase 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 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_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 26 matching lines...) Expand all
37 // source tab. Returns a non-positive value on error. 37 // source tab. Returns a non-positive value on error.
38 int TabIdFromMediaSource(const MediaSource& source); 38 int TabIdFromMediaSource(const MediaSource& source);
39 39
40 // Checks that |source| is a parseable URN and is of a known type. 40 // Checks that |source| is a parseable URN and is of a known type.
41 // Does not deeper protocol-level syntax checks. 41 // Does not deeper protocol-level syntax checks.
42 bool IsValidMediaSource(const MediaSource& source); 42 bool IsValidMediaSource(const MediaSource& source);
43 43
44 // Returns true if |url| is a valid presentation URL. 44 // Returns true if |url| is a valid presentation URL.
45 bool IsValidPresentationUrl(const GURL& url); 45 bool IsValidPresentationUrl(const GURL& url);
46 46
47 // Returns true if |presentation_id| is an ID used by auto-join requests.
48 bool IsAutoJoinPresentationId(const std::string& presentation_id);
49
47 } // namespace media_router 50 } // namespace media_router
48 51
49 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_HELPER_H_ 52 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/router/media_source_helper.cc » ('j') | chrome/browser/media/router/media_source_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698