Chromium Code Reviews| Index: components/dom_distiller/core/url_utils.h |
| diff --git a/components/dom_distiller/core/url_utils.h b/components/dom_distiller/core/url_utils.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2100fc0b3a41da1899599a5234b4c3f37e376f29 |
| --- /dev/null |
| +++ b/components/dom_distiller/core/url_utils.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ |
| +#define COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ |
| + |
| +class GURL; |
| + |
| +namespace dom_distiller { |
| + |
| +namespace url_utils { |
| + |
| +// Returns the URL for viewing distilled content for an entry. |
| +const GURL GetDistillerViewUrlFromEntryId(const std::string& scheme, |
| + const std::string& entry_id); |
| + |
| +// Returns the URL for viewing distilled content for a URL. |
| +const GURL GetDistillerViewUrlFromUrl(const std::string& scheme, |
| + const GURL& view_url); |
| + |
| +// Returns the value of the query parameter for the given path. |
| +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.
|
| + const std::string& key); |
| + |
| +// 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.
|
| +bool IsDistillableUrl(const GURL& url); |
| + |
| +} // namespace url_utils |
| + |
| +} // namespace dom_distiller |
| + |
| +#endif // COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_ |