OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2010 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2010 Google Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 #ifndef CSSPreloadScanner_h | 27 #ifndef CSSPreloadScanner_h |
28 #define CSSPreloadScanner_h | 28 #define CSSPreloadScanner_h |
29 | 29 |
30 #include "core/html/parser/HTMLResourcePreloader.h" | 30 #include "core/html/parser/HTMLResourcePreloader.h" |
31 #include "core/html/parser/HTMLToken.h" | 31 #include "core/html/parser/HTMLToken.h" |
32 #include "wtf/text/StringBuilder.h" | 32 #include "wtf/text/StringBuilder.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 class HTMLIdentifier; | |
37 class SegmentedString; | 36 class SegmentedString; |
38 | 37 |
39 class CSSPreloadScanner { | 38 class CSSPreloadScanner { |
40 WTF_MAKE_NONCOPYABLE(CSSPreloadScanner); | 39 WTF_MAKE_NONCOPYABLE(CSSPreloadScanner); |
41 public: | 40 public: |
42 CSSPreloadScanner(); | 41 CSSPreloadScanner(); |
43 ~CSSPreloadScanner(); | 42 ~CSSPreloadScanner(); |
44 | 43 |
45 void reset(); | 44 void reset(); |
46 | 45 |
(...skipping 24 matching lines...) Expand all Loading... |
71 StringBuilder m_rule; | 70 StringBuilder m_rule; |
72 StringBuilder m_ruleValue; | 71 StringBuilder m_ruleValue; |
73 | 72 |
74 // Only non-zero during scan() | 73 // Only non-zero during scan() |
75 PreloadRequestStream* m_requests; | 74 PreloadRequestStream* m_requests; |
76 }; | 75 }; |
77 | 76 |
78 } | 77 } |
79 | 78 |
80 #endif | 79 #endif |
OLD | NEW |