| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // 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 | 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/savable_url_schemes.h" | 5 #include "content/common/savable_url_schemes.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include "content/public/common/url_constants.h" | 9 #include "content/public/common/url_constants.h" |
| 10 #include "url/url_constants.h" |
| 10 | 11 |
| 11 namespace content { | 12 namespace content { |
| 12 | 13 |
| 13 namespace { | 14 namespace { |
| 14 | 15 |
| 15 const char* const kDefaultSavableSchemes[] = { | 16 const char* const kDefaultSavableSchemes[] = { |
| 16 kHttpScheme, | 17 url::kHttpScheme, |
| 17 kHttpsScheme, | 18 url::kHttpsScheme, |
| 18 kFileScheme, | 19 kFileScheme, |
| 19 kFileSystemScheme, | 20 kFileSystemScheme, |
| 20 kFtpScheme, | 21 kFtpScheme, |
| 21 kChromeDevToolsScheme, | 22 kChromeDevToolsScheme, |
| 22 kChromeUIScheme, | 23 kChromeUIScheme, |
| 23 kDataScheme, | 24 kDataScheme, |
| 24 NULL | 25 NULL |
| 25 }; | 26 }; |
| 26 | 27 |
| 27 const char* const* g_savable_schemes = kDefaultSavableSchemes; | 28 const char* const* g_savable_schemes = kDefaultSavableSchemes; |
| 28 | 29 |
| 29 } // namespace | 30 } // namespace |
| 30 | 31 |
| 31 const char* const* GetSavableSchemesInternal() { | 32 const char* const* GetSavableSchemesInternal() { |
| 32 return g_savable_schemes; | 33 return g_savable_schemes; |
| 33 } | 34 } |
| 34 | 35 |
| 35 void SetSavableSchemes(const char* const* savable_schemes) { | 36 void SetSavableSchemes(const char* const* savable_schemes) { |
| 36 g_savable_schemes = savable_schemes; | 37 g_savable_schemes = savable_schemes; |
| 37 } | 38 } |
| 38 | 39 |
| 39 } // namespace content | 40 } // namespace content |
| OLD | NEW |