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

Side by Side Diff: content/public/common/url_constants.cc

Issue 7811006: Add full support for filesystem URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge errors Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/browser_url_handler_impl.cc ('k') | net/base/mime_sniffer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/public/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::kFileSystemScheme,
15 chrome::kFtpScheme, 16 chrome::kFtpScheme,
16 chrome::kChromeDevToolsScheme, 17 chrome::kChromeDevToolsScheme,
17 chrome::kChromeUIScheme, 18 chrome::kChromeUIScheme,
18 NULL 19 NULL
19 }; 20 };
20 char** g_savable_schemes = const_cast<char**>(kDefaultSavableSchemes); 21 char** g_savable_schemes = const_cast<char**>(kDefaultSavableSchemes);
21 } // namespace 22 } // namespace
22 23
23 namespace chrome { 24 namespace chrome {
24 25
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 arraysize(kDefaultSavableSchemes) * sizeof(char*)); 102 arraysize(kDefaultSavableSchemes) * sizeof(char*));
102 for (int i = 0; i < schemes; ++i) { 103 for (int i = 0; i < schemes; ++i) {
103 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] = 104 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] =
104 base::strdup(additional_savable_schemes[i]); 105 base::strdup(additional_savable_schemes[i]);
105 } 106 }
106 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0; 107 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0;
107 } 108 }
108 } 109 }
109 110
110 } // namespace content 111 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_url_handler_impl.cc ('k') | net/base/mime_sniffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698