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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a57fcd2948552ac768f93436739580df493031f1
--- /dev/null
+++ b/components/dom_distiller/core/url_utils.h
@@ -0,0 +1,35 @@
+// 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_
+
+#include <string>
+
+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,
+ const std::string& key);
+
+// Return whether it should be possible to distill the given |url|.
+bool IsUrlDistillable(const GURL& url);
+
+} // namespace url_utils
+
+} // namespace dom_distiller
+
+#endif // COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_
« 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