| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 DECLARE_TRACE(); | 100 DECLARE_TRACE(); |
| 101 | 101 |
| 102 protected: | 102 protected: |
| 103 // Protected for tests, which don't want to initialize a fully featured | 103 // Protected for tests, which don't want to initialize a fully featured |
| 104 // DocumentLoader. | 104 // DocumentLoader. |
| 105 virtual void fetchPreloads(PreloadRequestStream& preloads); | 105 virtual void fetchPreloads(PreloadRequestStream& preloads); |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 void scanCSS(const CSSStyleSheetResource*); | 108 void scanCSS(const CSSStyleSheetResource*); |
| 109 | 109 |
| 110 enum PreloadPolicy { |
| 111 ScanOnly, |
| 112 ScanAndPreload, |
| 113 }; |
| 114 |
| 115 const PreloadPolicy m_policy; |
| 110 WeakMember<HTMLResourcePreloader> m_preloader; | 116 WeakMember<HTMLResourcePreloader> m_preloader; |
| 111 }; | 117 }; |
| 112 | 118 |
| 113 } // namespace blink | 119 } // namespace blink |
| 114 | 120 |
| 115 #endif | 121 #endif |
| OLD | NEW |