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

Side by Side Diff: components/dom_distiller/core/url_utils.h

Issue 151003006: Add support for distilling arbitrary URLs in DOM Distiller Viewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added new strings to iOS whitelist Created 6 years, 9 months 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 | Annotate | Revision Log
OLDNEW
(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 #include <string>
9
10 class GURL;
11
12 namespace dom_distiller {
13
14 namespace url_utils {
15
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);
19
20 // Returns the URL for viewing distilled content for a URL.
21 const GURL GetDistillerViewUrlFromUrl(const std::string& scheme,
22 const GURL& view_url);
23
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);
27
28 // Return whether it should be possible to distill the given |url|.
29 bool IsUrlDistillable(const GURL& url);
30
31 } // namespace url_utils
32
33 } // namespace dom_distiller
34
35 #endif // COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_
OLDNEW
« no previous file with comments | « components/dom_distiller/core/url_constants.cc ('k') | components/dom_distiller/core/url_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698