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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h

Issue 1976463003: Preload scan external CSS for @import (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: preload @import Created 4 years, 4 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
OLDNEW
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 26 matching lines...) Expand all
37 #include "wtf/PtrUtil.h" 37 #include "wtf/PtrUtil.h"
38 #include "wtf/Vector.h" 38 #include "wtf/Vector.h"
39 #include <memory> 39 #include <memory>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 typedef size_t TokenPreloadScannerCheckpoint; 43 typedef size_t TokenPreloadScannerCheckpoint;
44 44
45 class HTMLParserOptions; 45 class HTMLParserOptions;
46 class HTMLTokenizer; 46 class HTMLTokenizer;
47 class ResourcePreloader;
47 class SegmentedString; 48 class SegmentedString;
48 49
49 struct ViewportDescriptionWrapper { 50 struct ViewportDescriptionWrapper {
50 ViewportDescription description; 51 ViewportDescription description;
51 bool set; 52 bool set;
52 ViewportDescriptionWrapper() 53 ViewportDescriptionWrapper()
53 : set(false) 54 : set(false)
54 { 55 {
55 } 56 }
56 }; 57 };
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 173
173 TokenPreloadScanner m_scanner; 174 TokenPreloadScanner m_scanner;
174 SegmentedString m_source; 175 SegmentedString m_source;
175 HTMLToken m_token; 176 HTMLToken m_token;
176 std::unique_ptr<HTMLTokenizer> m_tokenizer; 177 std::unique_ptr<HTMLTokenizer> m_tokenizer;
177 }; 178 };
178 179
179 } // namespace blink 180 } // namespace blink
180 181
181 #endif 182 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698