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

Side by Side Diff: url/url_canon_internal_file.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_internal.cc ('k') | url/url_canon_ip.h » ('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 2007, Google Inc. 1 // Copyright 2007, 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 18 matching lines...) Expand all
29 29
30 // As with url_canon_internal.h, this file is intended to be included in 30 // As with url_canon_internal.h, this file is intended to be included in
31 // another C++ file where the template types are defined. This allows the 31 // another C++ file where the template types are defined. This allows the
32 // programmer to use this to use these functions for their own strings 32 // programmer to use this to use these functions for their own strings
33 // types, without bloating the code by having inline templates used in 33 // types, without bloating the code by having inline templates used in
34 // every call site. 34 // every call site.
35 // 35 //
36 // *** This file must be included after url_canon_internal as we depend on some 36 // *** This file must be included after url_canon_internal as we depend on some
37 // functions in it. *** 37 // functions in it. ***
38 38
39 #ifndef GOOGLEURL_SRC_URL_CANON_INTERNAL_FILE_H__ 39 #ifndef URL_URL_CANON_INTERNAL_FILE_H_
40 #define GOOGLEURL_SRC_URL_CANON_INTERNAL_FILE_H__ 40 #define URL_URL_CANON_INTERNAL_FILE_H_
41 41
42 #include "googleurl/src/url_file.h" 42 #include "url/url_file.h"
43 #include "googleurl/src/url_parse_internal.h" 43 #include "url/url_parse_internal.h"
44 44
45 using namespace url_canon; 45 using namespace url_canon;
46 46
47 // Given a pointer into the spec, this copies and canonicalizes the drive 47 // Given a pointer into the spec, this copies and canonicalizes the drive
48 // letter and colon to the output, if one is found. If there is not a drive 48 // letter and colon to the output, if one is found. If there is not a drive
49 // spec, it won't do anything. The index of the next character in the input 49 // spec, it won't do anything. The index of the next character in the input
50 // spec is returned (after the colon when a drive spec is found, the begin 50 // spec is returned (after the colon when a drive spec is found, the begin
51 // offset if one is not). 51 // offset if one is not).
52 template<typename CHAR> 52 template<typename CHAR>
53 static int FileDoDriveSpec(const CHAR* spec, int begin, int end, 53 static int FileDoDriveSpec(const CHAR* spec, int begin, int end,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 // Things following the path we can use the standard canonicalizers for. 148 // Things following the path we can use the standard canonicalizers for.
149 success &= URLCanonInternal<CHAR, UCHAR>::DoQuery( 149 success &= URLCanonInternal<CHAR, UCHAR>::DoQuery(
150 source.query, parsed.query, output, &new_parsed->query); 150 source.query, parsed.query, output, &new_parsed->query);
151 success &= URLCanonInternal<CHAR, UCHAR>::DoRef( 151 success &= URLCanonInternal<CHAR, UCHAR>::DoRef(
152 source.ref, parsed.ref, output, &new_parsed->ref); 152 source.ref, parsed.ref, output, &new_parsed->ref);
153 153
154 return success; 154 return success;
155 } 155 }
156 156
157 #endif // GOOGLEURL_SRC_URL_CANON_INTERNAL_FILE_H__ 157 #endif // URL_URL_CANON_INTERNAL_FILE_H_
OLDNEW
« no previous file with comments | « url/url_canon_internal.cc ('k') | url/url_canon_ip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698