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 #import "ios/web/net/clients/crw_js_injection_network_client.h" | 5 #import "ios/web/net/clients/crw_js_injection_network_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/mac/scoped_nsobject.h" | 11 #import "base/mac/scoped_nsobject.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #import "ios/net/crn_http_url_response.h" | 13 #import "ios/net/crn_http_url_response.h" |
14 #import "ios/third_party/blink/src/html_tokenizer.h" | 14 #import "ios/third_party/blink/src/html_tokenizer.h" |
15 | 15 |
16 #if !defined(__has_feature) || !__has_feature(objc_arc) | 16 #if !defined(__has_feature) || !__has_feature(objc_arc) |
17 #error "This file requires ARC support." | 17 #error "This file requires ARC support." |
18 #endif | 18 #endif |
19 | 19 |
20 // CRWJSInjectionNetworkClient injects an external script tag reference for | 20 // CRWJSInjectionNetworkClient injects an external script tag reference for |
21 // crweb.js into HTML and XHTML documents. To do this correctly, three data | 21 // crweb.js into HTML and XHTML documents. To do this correctly, three data |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 } | 630 } |
631 } | 631 } |
632 | 632 |
633 // There is an early exit case right at the end of the start-tag from the | 633 // There is an early exit case right at the end of the start-tag from the |
634 // WebCore::HTMLTokenizer::nextToken(), so double check to see if we hit | 634 // WebCore::HTMLTokenizer::nextToken(), so double check to see if we hit |
635 // the limit. | 635 // the limit. |
636 [self checkIfByteLimitPassed:provider]; | 636 [self checkIfByteLimitPassed:provider]; |
637 } | 637 } |
638 | 638 |
639 @end | 639 @end |
OLD | NEW |