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

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

Issue 1196193005: Allow preload scanners to be disabled by Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@minimaster
Patch Set: add unit test Created 5 years, 6 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
« no previous file with comments | « Source/core/frame/Settings.in ('k') | Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class HTMLParserOptions; 44 class HTMLParserOptions;
45 class HTMLTokenizer; 45 class HTMLTokenizer;
46 class SegmentedString; 46 class SegmentedString;
47 47
48 struct CORE_EXPORT CachedDocumentParameters { 48 struct CORE_EXPORT CachedDocumentParameters {
49 static PassOwnPtr<CachedDocumentParameters> create(Document* document, PassR efPtr<MediaValues> mediaValues = nullptr) 49 static PassOwnPtr<CachedDocumentParameters> create(Document* document, PassR efPtr<MediaValues> mediaValues = nullptr)
50 { 50 {
51 return adoptPtr(new CachedDocumentParameters(document, mediaValues)); 51 return adoptPtr(new CachedDocumentParameters(document, mediaValues));
52 } 52 }
53 53
54 bool doHtmlPreloadScanning;
54 RefPtr<MediaValues> mediaValues; 55 RefPtr<MediaValues> mediaValues;
55 Length defaultViewportMinWidth; 56 Length defaultViewportMinWidth;
56 bool viewportMetaZeroValuesQuirk; 57 bool viewportMetaZeroValuesQuirk;
57 bool viewportMetaEnabled; 58 bool viewportMetaEnabled;
58 59
59 private: 60 private:
60 CachedDocumentParameters(Document*, PassRefPtr<MediaValues>); 61 CachedDocumentParameters(Document*, PassRefPtr<MediaValues>);
61 }; 62 };
62 63
63 class TokenPreloadScanner { 64 class TokenPreloadScanner {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 private: 142 private:
142 TokenPreloadScanner m_scanner; 143 TokenPreloadScanner m_scanner;
143 SegmentedString m_source; 144 SegmentedString m_source;
144 HTMLToken m_token; 145 HTMLToken m_token;
145 OwnPtr<HTMLTokenizer> m_tokenizer; 146 OwnPtr<HTMLTokenizer> m_tokenizer;
146 }; 147 };
147 148
148 } 149 }
149 150
150 #endif 151 #endif
OLDNEW
« no previous file with comments | « Source/core/frame/Settings.in ('k') | Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698