Chromium Code Reviews| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 return wrapUnique(new CachedDocumentParameters(document)); | 63 return wrapUnique(new CachedDocumentParameters(document)); |
| 64 } | 64 } |
| 65 | 65 |
| 66 bool doHtmlPreloadScanning; | 66 bool doHtmlPreloadScanning; |
| 67 bool doDocumentWritePreloadScanning; | 67 bool doDocumentWritePreloadScanning; |
| 68 Length defaultViewportMinWidth; | 68 Length defaultViewportMinWidth; |
| 69 bool viewportMetaZeroValuesQuirk; | 69 bool viewportMetaZeroValuesQuirk; |
| 70 bool viewportMetaEnabled; | 70 bool viewportMetaEnabled; |
| 71 ReferrerPolicy referrerPolicy; | 71 ReferrerPolicy referrerPolicy; |
| 72 | 72 |
| 73 protected: | |
| 74 // For testing. | |
| 75 CachedDocumentParameters() {} | |
|
kouhei (in TOK)
2016/08/22 05:48:28
public:
static std::unique_ptr<CachedDocumentParam
Charlie Harrison
2016/08/23 01:32:28
I'm inclined to keep a protected constructor here
kouhei (in TOK)
2016/08/23 02:29:41
I'm fine either way. Not a blocker.
However we see
| |
| 76 | |
| 73 private: | 77 private: |
| 74 explicit CachedDocumentParameters(Document*); | 78 explicit CachedDocumentParameters(Document*); |
| 75 }; | 79 }; |
| 76 | 80 |
| 77 class TokenPreloadScanner { | 81 class TokenPreloadScanner { |
| 78 WTF_MAKE_NONCOPYABLE(TokenPreloadScanner); USING_FAST_MALLOC(TokenPreloadSca nner); | 82 WTF_MAKE_NONCOPYABLE(TokenPreloadScanner); USING_FAST_MALLOC(TokenPreloadSca nner); |
| 79 public: | 83 public: |
| 80 TokenPreloadScanner(const KURL& documentURL, std::unique_ptr<CachedDocumentP arameters>, const MediaValuesCached::MediaValuesCachedData&); | 84 TokenPreloadScanner(const KURL& documentURL, std::unique_ptr<CachedDocumentP arameters>, const MediaValuesCached::MediaValuesCachedData&); |
| 81 ~TokenPreloadScanner(); | 85 ~TokenPreloadScanner(); |
| 82 | 86 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 169 | 173 |
| 170 TokenPreloadScanner m_scanner; | 174 TokenPreloadScanner m_scanner; |
| 171 SegmentedString m_source; | 175 SegmentedString m_source; |
| 172 HTMLToken m_token; | 176 HTMLToken m_token; |
| 173 std::unique_ptr<HTMLTokenizer> m_tokenizer; | 177 std::unique_ptr<HTMLTokenizer> m_tokenizer; |
| 174 }; | 178 }; |
| 175 | 179 |
| 176 } // namespace blink | 180 } // namespace blink |
| 177 | 181 |
| 178 #endif | 182 #endif |
| OLD | NEW |