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

Side by Side Diff: url/url_util.h

Issue 23468003: Allow fragments to resolve relatively against any scheme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: really fix Created 7 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
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | url/url_util.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef URL_URL_UTIL_H_ 5 #ifndef URL_URL_UTIL_H_
6 #define URL_URL_UTIL_H_ 6 #define URL_URL_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 17 matching lines...) Expand all
28 // "noop" if other calls to the library have forced an initialization 28 // "noop" if other calls to the library have forced an initialization
29 // beforehand. 29 // beforehand.
30 URL_EXPORT void Initialize(); 30 URL_EXPORT void Initialize();
31 31
32 // Cleanup is not required, except some strings may leak. For most user 32 // Cleanup is not required, except some strings may leak. For most user
33 // applications, this is fine. If you're using it in a library that may get 33 // applications, this is fine. If you're using it in a library that may get
34 // loaded and unloaded, you'll want to unload to properly clean up your 34 // loaded and unloaded, you'll want to unload to properly clean up your
35 // library. 35 // library.
36 URL_EXPORT void Shutdown(); 36 URL_EXPORT void Shutdown();
37 37
38 // Enables certain URL processing to work in a manner more like how KURL would
39 // have worked in classic (pre-blink) WebKit. This is only required for Android
40 // WebView compatibility.
41 // This should only be configured during initialization; subsequent calls are
42 // only permitted for testing.
43 URL_EXPORT void SetKURLCompatMode(bool enable);
44
38 // Schemes -------------------------------------------------------------------- 45 // Schemes --------------------------------------------------------------------
39 46
40 // Adds an application-defined scheme to the internal list of "standard" URL 47 // Adds an application-defined scheme to the internal list of "standard" URL
41 // schemes. This function is not threadsafe and can not be called concurrently 48 // schemes. This function is not threadsafe and can not be called concurrently
42 // with any other url_util function. It will assert if the list of standard 49 // with any other url_util function. It will assert if the list of standard
43 // schemes has been locked (see LockStandardSchemes). 50 // schemes has been locked (see LockStandardSchemes).
44 URL_EXPORT void AddStandardScheme(const char* new_scheme); 51 URL_EXPORT void AddStandardScheme(const char* new_scheme);
45 52
46 // Sets a flag to prevent future calls to AddStandardScheme from succeeding. 53 // Sets a flag to prevent future calls to AddStandardScheme from succeeding.
47 // 54 //
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 201
195 // Escapes the given string as defined by the JS method encodeURIComponent. See 202 // Escapes the given string as defined by the JS method encodeURIComponent. See
196 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeUR IComponent 203 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeUR IComponent
197 URL_EXPORT void EncodeURIComponent(const char* input, int length, 204 URL_EXPORT void EncodeURIComponent(const char* input, int length,
198 url_canon::CanonOutput* output); 205 url_canon::CanonOutput* output);
199 206
200 207
201 } // namespace url_util 208 } // namespace url_util
202 209
203 #endif // URL_URL_UTIL_H_ 210 #endif // URL_URL_UTIL_H_
OLDNEW
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | url/url_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698