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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2411863002: [NoStatePrefetch] Kill renderer after preload scanning (Closed)
Patch Set: Created 4 years, 2 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 String visibilityState() const; 374 String visibilityState() const;
375 PageVisibilityState pageVisibilityState() const; 375 PageVisibilityState pageVisibilityState() const;
376 bool hidden() const; 376 bool hidden() const;
377 void didChangeVisibilityState(); 377 void didChangeVisibilityState();
378 378
379 // If the document is "prefetch only", it will not be fully contstructed, 379 // If the document is "prefetch only", it will not be fully contstructed,
380 // and should never be displayed. Only a few resources will be loaded and 380 // and should never be displayed. Only a few resources will be loaded and
381 // scanned, in order to warm up caches. 381 // scanned, in order to warm up caches.
382 bool isPrefetchOnly() const; 382 bool isPrefetchOnly() const;
383 383
384 void onPrefetchFinished() const;
385
384 Node* adoptNode(Node* source, ExceptionState&); 386 Node* adoptNode(Node* source, ExceptionState&);
385 387
386 HTMLCollection* images(); 388 HTMLCollection* images();
387 HTMLCollection* embeds(); 389 HTMLCollection* embeds();
388 HTMLCollection* applets(); 390 HTMLCollection* applets();
389 HTMLCollection* links(); 391 HTMLCollection* links();
390 HTMLCollection* forms(); 392 HTMLCollection* forms();
391 HTMLCollection* anchors(); 393 HTMLCollection* anchors();
392 HTMLCollection* scripts(); 394 HTMLCollection* scripts();
393 HTMLAllCollection* allForBinding(); 395 HTMLAllCollection* allForBinding();
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1687 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1686 1688
1687 } // namespace blink 1689 } // namespace blink
1688 1690
1689 #ifndef NDEBUG 1691 #ifndef NDEBUG
1690 // Outside the WebCore namespace for ease of invocation from gdb. 1692 // Outside the WebCore namespace for ease of invocation from gdb.
1691 CORE_EXPORT void showLiveDocumentInstances(); 1693 CORE_EXPORT void showLiveDocumentInstances();
1692 #endif 1694 #endif
1693 1695
1694 #endif // Document_h 1696 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698