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

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: 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.h ('k') | content/common/url_schemes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0e2c37e09d71edffb3b9d7718275a180147294ce
--- /dev/null
+++ b/content/common/savable_url_schemes.cc
@@ -0,0 +1,39 @@
+// 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 {
+
+const char* const* GetSavableSchemesInternal() {
+ return g_savable_schemes;
+}
+
+void SetSavableSchemes(const char* const* savable_schemes) {
+ g_savable_schemes = savable_schemes;
+}
+
+} // namespace content
« no previous file with comments | « content/common/savable_url_schemes.h ('k') | content/common/url_schemes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698