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

Side by Side Diff: third_party/WebKit/public/platform/WebPrerenderingSupport.h

Issue 2455653005: Revert "Revert of [NoStatePrefetch] Kill renderer after preload scanning (patchset #12 id:240001 of… (Closed)
Patch Set: rebased Created 4 years, 1 month 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 | « third_party/WebKit/Source/web/tests/PrerenderingTest.cpp ('k') | no next file » | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // A prerender is canceled when it is removed from a document. 49 // A prerender is canceled when it is removed from a document.
50 virtual void cancel(const WebPrerender&) = 0; 50 virtual void cancel(const WebPrerender&) = 0;
51 51
52 // A prerender is abandoned when it's navigated away from or suspended in the 52 // A prerender is abandoned when it's navigated away from or suspended in the
53 // page cache. This is a weaker signal than cancel(), since the launcher 53 // page cache. This is a weaker signal than cancel(), since the launcher
54 // hasn't indicated that the prerender isn't wanted, and we may end up using 54 // hasn't indicated that the prerender isn't wanted, and we may end up using
55 // it after, for instance, a short redirect chain. 55 // it after, for instance, a short redirect chain.
56 virtual void abandon(const WebPrerender&) = 0; 56 virtual void abandon(const WebPrerender&) = 0;
57 57
58 // Called when the current page has finished requesting early discoverable
59 // resources for prefetch. In prefetch mode link elements do not initiate any
60 // prerenders.
61 virtual void prefetchFinished() = 0;
62
58 protected: 63 protected:
59 WebPrerenderingSupport() {} 64 WebPrerenderingSupport() {}
60 virtual ~WebPrerenderingSupport() {} 65 virtual ~WebPrerenderingSupport() {}
61 66
62 private: 67 private:
63 static WebPrerenderingSupport* s_platform; 68 static WebPrerenderingSupport* s_platform;
64 }; 69 };
65 70
66 } // namespace blink 71 } // namespace blink
67 72
68 #endif // WebPrerenderingSupport_h 73 #endif // WebPrerenderingSupport_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/PrerenderingTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698