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

Side by Side Diff: url/url_canon_internal.h

Issue 14016005: url: Changes to make it build standalone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add blank line Created 7 years, 8 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 | « url/url_canon_icu.cc ('k') | url/url_canon_internal.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 2011, Google Inc. 1 // Copyright 2011, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 14 matching lines...) Expand all
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 // This file is intended to be included in another C++ file where the character 30 // This file is intended to be included in another C++ file where the character
31 // types are defined. This allows us to write mostly generic code, but not have 31 // types are defined. This allows us to write mostly generic code, but not have
32 // templace bloat because everything is inlined when anybody calls any of our 32 // templace bloat because everything is inlined when anybody calls any of our
33 // functions. 33 // functions.
34 34
35 #ifndef GOOGLEURL_SRC_URL_CANON_INTERNAL_H__ 35 #ifndef URL_URL_CANON_INTERNAL_H_
36 #define GOOGLEURL_SRC_URL_CANON_INTERNAL_H__ 36 #define URL_URL_CANON_INTERNAL_H_
37 37
38 #include <stdlib.h> 38 #include <stdlib.h>
39 39
40 #include "base/logging.h" 40 #include "base/logging.h"
41 #include "googleurl/src/url_canon.h" 41 #include "url/url_canon.h"
42 42
43 namespace url_canon { 43 namespace url_canon {
44 44
45 // Character type handling ----------------------------------------------------- 45 // Character type handling -----------------------------------------------------
46 46
47 // Bits that identify different character types. These types identify different 47 // Bits that identify different character types. These types identify different
48 // bits that are set for each 8-bit character in the kSharedCharTypeTable. 48 // bits that are set for each 8-bit character in the kSharedCharTypeTable.
49 enum SharedCharTypes { 49 enum SharedCharTypes {
50 // Characters that do not require escaping in queries. Characters that do 50 // Characters that do not require escaping in queries. Characters that do
51 // not have this flag will be escaped; see url_canon_query.cc 51 // not have this flag will be escaped; see url_canon_query.cc
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 // _strtoui64 and strtoull behave the same 451 // _strtoui64 and strtoull behave the same
452 inline unsigned long long _strtoui64(const char* nptr, 452 inline unsigned long long _strtoui64(const char* nptr,
453 char** endptr, int base) { 453 char** endptr, int base) {
454 return strtoull(nptr, endptr, base); 454 return strtoull(nptr, endptr, base);
455 } 455 }
456 456
457 #endif // WIN32 457 #endif // WIN32
458 458
459 } // namespace url_canon 459 } // namespace url_canon
460 460
461 #endif // GOOGLEURL_SRC_URL_CANON_INTERNAL_H__ 461 #endif // URL_URL_CANON_INTERNAL_H_
OLDNEW
« no previous file with comments | « url/url_canon_icu.cc ('k') | url/url_canon_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698