Make sure webrtc::VideoSource is released when WebRtcVideoTrackAdapter is destroyed.
[chromium-blink-merge.git] / components / dom_distiller / core / url_utils.h
blob8202850db8de00678c6372abfacea1db6820ccab
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_
6 #define COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_
8 #include <string>
10 class GURL;
12 namespace dom_distiller {
14 namespace url_utils {
16 // Returns the URL for viewing distilled content for an entry.
17 const GURL GetDistillerViewUrlFromEntryId(const std::string& scheme,
18 const std::string& entry_id);
20 // Returns the URL for viewing distilled content for a URL.
21 const GURL GetDistillerViewUrlFromUrl(const std::string& scheme,
22 const GURL& view_url);
24 // Returns the value of the query parameter for the given path.
25 std::string GetValueForKeyInUrlPathQuery(const std::string& path,
26 const std::string& key);
28 // Returns whether it should be possible to distill the given |url|.
29 bool IsUrlDistillable(const GURL& url);
31 // Returns whether it should be possible to report the given |url|.
32 bool IsUrlReportable(const std::string& scheme, const GURL& url);
34 } // namespace url_utils
36 } // namespace dom_distiller
38 #endif // COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_