Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ |
| 6 #define COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 class GURL; | 10 class GURL; |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 // Returns the value of the query parameter for the given path. | 24 // Returns the value of the query parameter for the given path. |
| 25 std::string GetValueForKeyInUrlPathQuery(const std::string& path, | 25 std::string GetValueForKeyInUrlPathQuery(const std::string& path, |
| 26 const std::string& key); | 26 const std::string& key); |
| 27 | 27 |
| 28 // Returns whether it should be possible to distill the given |url|. | 28 // Returns whether it should be possible to distill the given |url|. |
| 29 bool IsUrlDistillable(const GURL& url); | 29 bool IsUrlDistillable(const GURL& url); |
| 30 | 30 |
| 31 // Returns whether the given |url| is for a distilled page. | 31 // Returns whether the given |url| is for a distilled page. |
| 32 bool IsDistilledPage(const GURL& url); | 32 bool IsDistilledPage(const GURL& url); |
| 33 | 33 |
| 34 // Returns the JavaScript to tell whether or not a page is an article. | |
|
Yaron
2014/08/12 20:49:00
s/an article/is likely usable with DomDistillerSer
smaslo
2014/08/12 20:58:15
Done.
| |
| 35 std::string GetIsDistillableJs(); | |
| 36 | |
| 34 } // namespace url_utils | 37 } // namespace url_utils |
| 35 | 38 |
| 36 } // namespace dom_distiller | 39 } // namespace dom_distiller |
| 37 | 40 |
| 38 #endif // COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ | 41 #endif // COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ |
| OLD | NEW |