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

Unified Diff: content/common/savable_url_schemes.cc

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: pull common test initialization out into ContentTestSuiteBase 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
Index: content/common/savable_url_schemes.cc
diff --git a/content/common/savable_url_schemes.cc b/content/common/savable_url_schemes.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6be8a6541fd0e00e099f3866d2a9affe31ba7ebe
--- /dev/null
+++ b/content/common/savable_url_schemes.cc
@@ -0,0 +1,43 @@
+// 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.
+
+#include "content/common/savable_url_schemes.h"
+
+#include <stdlib.h>
+
+#include "content/public/common/url_constants.h"
+
+namespace {
+
+const char* const kDefaultSavableSchemes[] = {
+ chrome::kHttpScheme,
+ chrome::kHttpsScheme,
+ chrome::kFileScheme,
+ chrome::kFileSystemScheme,
+ chrome::kFtpScheme,
+ chrome::kChromeDevToolsScheme,
+ chrome::kChromeUIScheme,
+ chrome::kDataScheme,
+ NULL
+};
+
+const char* const* g_savable_schemes = kDefaultSavableSchemes;
+
+} // namespace
+
+namespace content {
+
+namespace internal {
+
+const char* const* GetSavableSchemes() {
+ return g_savable_schemes;
+}
+
+void SetSavableSchemes(const char* const* savable_schemes) {
+ g_savable_schemes = savable_schemes;
+}
+
+} // namespace internal
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698