OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/url_constants.h" | 5 #include "content/public/common/url_constants.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "googleurl/src/url_util.h" | 8 #include "googleurl/src/url_util.h" |
9 | 9 |
10 namespace { | 10 namespace { |
11 const char* kDefaultSavableSchemes[] = { | 11 const char* kDefaultSavableSchemes[] = { |
12 chrome::kHttpScheme, | 12 chrome::kHttpScheme, |
13 chrome::kHttpsScheme, | 13 chrome::kHttpsScheme, |
14 chrome::kFileScheme, | 14 chrome::kFileScheme, |
15 chrome::kFtpScheme, | 15 chrome::kFtpScheme, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 arraysize(kDefaultSavableSchemes) * sizeof(char*)); | 78 arraysize(kDefaultSavableSchemes) * sizeof(char*)); |
79 for (int i = 0; i < schemes; ++i) { | 79 for (int i = 0; i < schemes; ++i) { |
80 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] = | 80 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] = |
81 base::strdup(additional_savable_schemes[i]); | 81 base::strdup(additional_savable_schemes[i]); |
82 } | 82 } |
83 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0; | 83 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0; |
84 } | 84 } |
85 } | 85 } |
86 | 86 |
87 } // namespace chrome | 87 } // namespace chrome |
OLD | NEW |