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

Side by Side Diff: chrome/common/url_constants.cc

Issue 3282003: Support handling blob URL and resolve blob references in upload data.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "chrome/common/url_constants.h" 7 #include "chrome/common/url_constants.h"
8 #include "googleurl/src/url_util.h" 8 #include "googleurl/src/url_util.h"
9 9
10 namespace chrome { 10 namespace chrome {
11 11
12 const char kAboutScheme[] = "about"; 12 const char kAboutScheme[] = "about";
13 const char kBlobScheme[] = "blob";
13 const char kChromeInternalScheme[] = "chrome-internal"; 14 const char kChromeInternalScheme[] = "chrome-internal";
14 const char kChromeUIScheme[] = "chrome"; 15 const char kChromeUIScheme[] = "chrome";
15 const char kDataScheme[] = "data"; 16 const char kDataScheme[] = "data";
16 const char kExtensionScheme[] = "chrome-extension"; 17 const char kExtensionScheme[] = "chrome-extension";
17 const char kFileScheme[] = "file"; 18 const char kFileScheme[] = "file";
18 const char kFtpScheme[] = "ftp"; 19 const char kFtpScheme[] = "ftp";
19 const char kGearsScheme[] = "gears"; 20 const char kGearsScheme[] = "gears";
20 const char kHttpScheme[] = "http"; 21 const char kHttpScheme[] = "http";
21 const char kHttpsScheme[] = "https"; 22 const char kHttpsScheme[] = "https";
22 const char kJavaScriptScheme[] = "javascript"; 23 const char kJavaScriptScheme[] = "javascript";
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 148
148 // Prevent future modification of the standard schemes list. This is to 149 // Prevent future modification of the standard schemes list. This is to
149 // prevent accidental creation of data races in the program. AddStandardScheme 150 // prevent accidental creation of data races in the program. AddStandardScheme
150 // isn't threadsafe so must be called when GURL isn't used on any other 151 // isn't threadsafe so must be called when GURL isn't used on any other
151 // thread. This is really easy to mess up, so we say that all calls to 152 // thread. This is really easy to mess up, so we say that all calls to
152 // AddStandardScheme in Chrome must be inside this function. 153 // AddStandardScheme in Chrome must be inside this function.
153 url_util::LockStandardSchemes(); 154 url_util::LockStandardSchemes();
154 } 155 }
155 156
156 } // namespace chrome 157 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698