OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ | |
6 #define COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ | |
7 | |
8 class GURL; | |
9 | |
10 namespace dom_distiller { | |
11 | |
12 namespace url_utils { | |
13 | |
14 // Returns the URL for viewing distilled content for an entry. | |
15 const GURL GetDistillerViewUrlFromEntryId(const std::string& scheme, | |
16 const std::string& entry_id); | |
17 | |
18 // Returns the URL for viewing distilled content for a URL. | |
19 const GURL GetDistillerViewUrlFromUrl(const std::string& scheme, | |
20 const GURL& view_url); | |
21 | |
22 // Returns the value of the query parameter for the given path. | |
23 std::string GetValueForKeyInURLPathQuery(const std::string& path, | |
shashi
2014/02/27 04:29:08
Just noticed that we have Url and URL as two spell
nyquist
2014/02/27 19:50:19
Done.
| |
24 const std::string& key); | |
25 | |
26 // Return whether it should be possible to distill the given URL. | |
shashi
2014/02/27 04:29:08
nit: |url| ?
nyquist
2014/02/27 19:50:19
Done.
| |
27 bool IsDistillableUrl(const GURL& url); | |
28 | |
29 } // namespace url_utils | |
30 | |
31 } // namespace dom_distiller | |
32 | |
33 #endif // COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ | |
OLD | NEW |