| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |