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

Unified Diff: content/public/common/url_utils.h

Issue 15021020: content: Extract url utility functions into url_utils.{h,cc} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix content_unittests and content_browsertests Created 7 years, 7 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 | « content/public/common/url_constants.cc ('k') | content/public/common/url_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/url_utils.h
diff --git a/content/public/common/url_utils.h b/content/public/common/url_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..0b67ab809727c8a894690dd6d7da0d0a79743ac4
--- /dev/null
+++ b/content/public/common/url_utils.h
@@ -0,0 +1,27 @@
+// Copyright 2013 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 CONTENT_PUBLIC_COMMON_URL_UTILS_H_
+#define CONTENT_PUBLIC_COMMON_URL_UTILS_H_
+
+#include "content/common/content_export.h"
+
+class GURL;
+
+namespace content {
+
+// Null terminated list of schemes that are savable. This function can be
+// invoked on any thread.
+CONTENT_EXPORT const char* const* GetSavableSchemes();
+
+// Returns true if the url has a scheme for WebUI. See also
+// WebUIControllerFactory::UseWebUIForURL in the browser process.
+CONTENT_EXPORT bool HasWebUIScheme(const GURL& url);
+
+// Check whether we can do the saving page operation for the specified URL.
+CONTENT_EXPORT bool IsSavableURL(const GURL& url);
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_URL_UTILS_H_
« no previous file with comments | « content/public/common/url_constants.cc ('k') | content/public/common/url_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698