OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This is a port of ManifestParser.cc from WebKit/WebCore/loader/appcache. | 5 // This is a port of ManifestParser.cc from WebKit/WebCore/loader/appcache. |
6 | 6 |
7 /* | 7 /* |
8 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 8 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
9 * | 9 * |
10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
(...skipping 13 matching lines...) Expand all Loading... |
24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
27 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 #include "content/browser/appcache/appcache_manifest_parser.h" | 32 #include "content/browser/appcache/appcache_manifest_parser.h" |
33 | 33 |
| 34 #include <stddef.h> |
| 35 |
34 #include "base/command_line.h" | 36 #include "base/command_line.h" |
35 #include "base/i18n/icu_string_conversions.h" | 37 #include "base/i18n/icu_string_conversions.h" |
36 #include "base/logging.h" | 38 #include "base/logging.h" |
| 39 #include "base/macros.h" |
37 #include "base/strings/utf_string_conversions.h" | 40 #include "base/strings/utf_string_conversions.h" |
38 #include "url/gurl.h" | 41 #include "url/gurl.h" |
39 | 42 |
40 namespace content { | 43 namespace content { |
41 | 44 |
42 namespace { | 45 namespace { |
43 | 46 |
44 // Helper function used to identify 'isPattern' annotations. | 47 // Helper function used to identify 'isPattern' annotations. |
45 bool HasPatternMatchingAnnotation(const wchar_t* line_p, | 48 bool HasPatternMatchingAnnotation(const wchar_t* line_p, |
46 const wchar_t* line_end) { | 49 const wchar_t* line_end) { |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 fallback_url, is_pattern)); | 373 fallback_url, is_pattern)); |
371 } else { | 374 } else { |
372 NOTREACHED(); | 375 NOTREACHED(); |
373 } | 376 } |
374 } | 377 } |
375 | 378 |
376 return true; | 379 return true; |
377 } | 380 } |
378 | 381 |
379 } // namespace content | 382 } // namespace content |
OLD | NEW |