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

Unified Diff: content/common/url_schemes.h

Issue 10383298: Move RegisterContentSchemes from public url_constants into non-public url_schemes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: allow content/common/savable_url_schemes.h to be included by url_constants.cc Created 8 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/common/savable_url_schemes.cc ('k') | content/common/url_schemes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/url_schemes.h
diff --git a/content/common/url_schemes.h b/content/common/url_schemes.h
new file mode 100644
index 0000000000000000000000000000000000000000..b611af64d257ad5d052510d981944ab85bd59fa2
--- /dev/null
+++ b/content/common/url_schemes.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 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_COMMON_URL_SCHEMES_H_
+#define CONTENT_COMMON_URL_SCHEMES_H_
+#pragma once
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+// Note: ContentMainRunner calls this method internally as part of main
+// initialziation, so this function generally should not be called by
+// embedders. It's exported to facilitate test harnesses that do not
+// utilize ContentMainRunner and that do not wish to lock the set
+// of standard schemes at init time.
+//
+// Called near the beginning of startup to register URL schemes that should
+// be parsed as "standard" with the googleurl library. Optionally, the set
+// of standard schemes is locked down. The embedder can add additional
+// schemes by overriding the ContentClient::AddAdditionalSchemes method.
+CONTENT_EXPORT void RegisterContentSchemes(bool lock_standard_schemes);
+
+} // namespace content
+
+#endif // CONTENT_COMMON_URL_SCHEMES_H_
« no previous file with comments | « content/common/savable_url_schemes.cc ('k') | content/common/url_schemes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698