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

Side by Side Diff: url/url_util.h

Issue 1561693003: IWYU fixes for url/... Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unedited changes made by the IWYU tool. Created 4 years, 11 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
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"
11 #include "url/third_party/mozilla/url_parse.h" 11 #include "url/third_party/mozilla/url_parse.h"
12 #include "url/url_canon.h" 12 #include "url/url_canon.h"
13 #include "url/url_constants.h" 13 #include "url/url_constants.h"
14 #include "url/url_export.h" 14 #include "url/url_export.h"
15 15
16 namespace url { 16 namespace url {
17 17
18 // Init ------------------------------------------------------------------------ 18 // Init ------------------------------------------------------------------------
19 19
20 // Initialization is NOT required, it will be implicitly initialized when first 20 // Initialization is NOT required, it will be implicitly initialized when first
21 // used. However, this implicit initialization is NOT threadsafe. If you are 21 // used. However, this implicit initialization is NOT threadsafe. If you are
22 // using this library in a threaded environment and don't have a consistent 22 // using this library in a threaded environment and don't have a consistent
23 // "first call" (an example might be calling AddStandardScheme with your special 23 // "first call" (an example might be calling AddStandardScheme with your special
24 // application-specific schemes) then you will want to call initialize before 24 // application-specific schemes) then you will want to call initialize before
25 // spawning any threads. 25 // spawning any threads.
26 // 26 //
27 // It is OK to call this function more than once, subsequent calls will be 27 // It is OK to call this function more than once, subsequent calls will be
28 // no-ops, unless Shutdown was called in the mean time. This will also be a 28 // no-ops, unless Shutdown was called in the mean time. This will also be a
29 // no-op if other calls to the library have forced an initialization beforehand. 29 // no-op if other calls to the library have forced an initialization beforehand.
30 struct Component;
31 struct Parsed;
32
30 URL_EXPORT void Initialize(); 33 URL_EXPORT void Initialize();
31 34
32 // Cleanup is not required, except some strings may leak. For most user 35 // 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 36 // 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 37 // loaded and unloaded, you'll want to unload to properly clean up your
35 // library. 38 // library.
36 URL_EXPORT void Shutdown(); 39 URL_EXPORT void Shutdown();
37 40
38 // Schemes -------------------------------------------------------------------- 41 // Schemes --------------------------------------------------------------------
39 42
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 203
201 // Escapes the given string as defined by the JS method encodeURIComponent. See 204 // Escapes the given string as defined by the JS method encodeURIComponent. See
202 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeUR IComponent 205 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeUR IComponent
203 URL_EXPORT void EncodeURIComponent(const char* input, 206 URL_EXPORT void EncodeURIComponent(const char* input,
204 int length, 207 int length,
205 CanonOutput* output); 208 CanonOutput* output);
206 209
207 } // namespace url 210 } // namespace url
208 211
209 #endif // URL_URL_UTIL_H_ 212 #endif // URL_URL_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698