Chromium Code Reviews| Index: third_party/WebKit/Source/platform/Prerender.h |
| diff --git a/third_party/WebKit/Source/platform/Prerender.h b/third_party/WebKit/Source/platform/Prerender.h |
| index e942e0e5d39261116e712a800fa907abae326f73..aff87ae14831b98176a334ccc2303dd52a2664b7 100644 |
| --- a/third_party/WebKit/Source/platform/Prerender.h |
| +++ b/third_party/WebKit/Source/platform/Prerender.h |
| @@ -83,7 +83,11 @@ public: |
| private: |
| Prerender(PrerenderClient*, const KURL&, unsigned relTypes, const Referrer&); |
| - Member<PrerenderClient> m_client; |
| + // The embedder's prerendering support holds on to pending Prerender objects; |
| + // those references should not keep the PrerenderClient alive -- if the client |
| + // becomes otherwise unreachable it should be GCed (at which point it will |
| + // abandon this Prerender object.) |
| + WeakMember<PrerenderClient> m_client; |
|
sof
2016/04/18 11:33:53
An alternative to this is to have the WebPrivatePt
|
| const KURL m_url; |
| const unsigned m_relTypes; |