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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.h

Issue 2343623002: Add a warning whenever link preloads are not used (Closed)
Patch Set: Removed the counter, since it was not accurate Created 4 years, 3 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) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 void removedEventListener(const AtomicString& eventType, const RegisteredEve ntListener&) override; 217 void removedEventListener(const AtomicString& eventType, const RegisteredEve ntListener&) override;
218 218
219 // Protected DOMWindow overrides. 219 // Protected DOMWindow overrides.
220 void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> target, D ocument* source) override; 220 void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> target, D ocument* source) override;
221 221
222 private: 222 private:
223 // Intentionally private to prevent redundant checks when the type is 223 // Intentionally private to prevent redundant checks when the type is
224 // already LocalDOMWindow. 224 // already LocalDOMWindow.
225 bool isLocalDOMWindow() const override { return true; } 225 bool isLocalDOMWindow() const override { return true; }
226 bool isRemoteDOMWindow() const override { return false; } 226 bool isRemoteDOMWindow() const override { return false; }
227 void warnUnusedPreloads(TimerBase*);
227 228
228 explicit LocalDOMWindow(LocalFrame&); 229 explicit LocalDOMWindow(LocalFrame&);
229 void dispose(); 230 void dispose();
230 231
231 void dispatchLoadEvent(); 232 void dispatchLoadEvent();
232 void clearDocument(); 233 void clearDocument();
233 234
234 void willDetachFrameHost(); 235 void willDetachFrameHost();
235 236
236 Member<LocalFrame> m_frame; 237 Member<LocalFrame> m_frame;
237 Member<Document> m_document; 238 Member<Document> m_document;
238 Member<DOMVisualViewport> m_visualViewport; 239 Member<DOMVisualViewport> m_visualViewport;
240 Timer<LocalDOMWindow> m_unusedPreloadsTimer;
239 241
240 bool m_shouldPrintWhenFinishedLoading; 242 bool m_shouldPrintWhenFinishedLoading;
241 243
242 HeapHashSet<WeakMember<DOMWindowProperty>> m_properties; 244 HeapHashSet<WeakMember<DOMWindowProperty>> m_properties;
243 245
244 mutable Member<Screen> m_screen; 246 mutable Member<Screen> m_screen;
245 mutable Member<History> m_history; 247 mutable Member<History> m_history;
246 mutable Member<BarProp> m_locationbar; 248 mutable Member<BarProp> m_locationbar;
247 mutable Member<BarProp> m_menubar; 249 mutable Member<BarProp> m_menubar;
248 mutable Member<BarProp> m_personalbar; 250 mutable Member<BarProp> m_personalbar;
(...skipping 24 matching lines...) Expand all
273 } 275 }
274 276
275 inline String LocalDOMWindow::defaultStatus() const 277 inline String LocalDOMWindow::defaultStatus() const
276 { 278 {
277 return m_defaultStatus; 279 return m_defaultStatus;
278 } 280 }
279 281
280 } // namespace blink 282 } // namespace blink
281 283
282 #endif // LocalDOMWindow_h 284 #endif // LocalDOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698