blob: 0e2c37e09d71edffb3b9d7718275a180147294ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
|