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 21 matching lines...) Expand all Loading... |
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 // Schemes -------------------------------------------------------------------- | 38 // Schemes -------------------------------------------------------------------- |
39 | 39 |
40 // Types of a scheme representing the requirements on the data represented by | 40 // Types of a scheme representing the requirements on the data represented by |
41 // the authority component of a URL with the scheme. | 41 // the authority component of a URL with the scheme. |
42 enum URL_EXPORT SchemeType { | 42 enum SchemeType { |
43 // The authority component of a URL with the scheme, if any, has the port | 43 // The authority component of a URL with the scheme, if any, has the port |
44 // (the default values may be omitted in a serialization). | 44 // (the default values may be omitted in a serialization). |
45 SCHEME_WITH_PORT, | 45 SCHEME_WITH_PORT, |
46 // The authority component of a URL with the scheme, if any, doesn't have a | 46 // The authority component of a URL with the scheme, if any, doesn't have a |
47 // port. | 47 // port. |
48 SCHEME_WITHOUT_PORT, | 48 SCHEME_WITHOUT_PORT, |
49 // A URL with the scheme doesn't have the authority component. | 49 // A URL with the scheme doesn't have the authority component. |
50 SCHEME_WITHOUT_AUTHORITY, | 50 SCHEME_WITHOUT_AUTHORITY, |
51 }; | 51 }; |
52 | 52 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 200 |
201 // Escapes the given string as defined by the JS method encodeURIComponent. See | 201 // Escapes the given string as defined by the JS method encodeURIComponent. See |
202 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeUR
IComponent | 202 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeUR
IComponent |
203 URL_EXPORT void EncodeURIComponent(const char* input, | 203 URL_EXPORT void EncodeURIComponent(const char* input, |
204 int length, | 204 int length, |
205 CanonOutput* output); | 205 CanonOutput* output); |
206 | 206 |
207 } // namespace url | 207 } // namespace url |
208 | 208 |
209 #endif // URL_URL_UTIL_H_ | 209 #endif // URL_URL_UTIL_H_ |
OLD | NEW |