blob: 697f2ebae54a6564a661f1ff29956943169a32b0 [file] [log] [blame]
[email protected]1de7a172012-05-28 18:36:431// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "content/common/savable_url_schemes.h"
6
7#include <stdlib.h>
8
9#include "content/public/common/url_constants.h"
10
[email protected]4654bfe2013-08-26 03:36:5811namespace content {
12
[email protected]1de7a172012-05-28 18:36:4313namespace {
14
15const char* const kDefaultSavableSchemes[] = {
[email protected]e9a82042013-09-15 03:38:2916 kHttpScheme,
[email protected]4654bfe2013-08-26 03:36:5817 kHttpsScheme,
[email protected]1de7a172012-05-28 18:36:4318 chrome::kFileScheme,
19 chrome::kFileSystemScheme,
20 chrome::kFtpScheme,
21 chrome::kChromeDevToolsScheme,
22 chrome::kChromeUIScheme,
23 chrome::kDataScheme,
24 NULL
25};
26
27const char* const* g_savable_schemes = kDefaultSavableSchemes;
28
29} // namespace
30
[email protected]1de7a172012-05-28 18:36:4331const char* const* GetSavableSchemesInternal() {
32 return g_savable_schemes;
33}
34
35void SetSavableSchemes(const char* const* savable_schemes) {
36 g_savable_schemes = savable_schemes;
37}
38
39} // namespace content