OLD | NEW |
---|---|
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 ExtraData* getExtraData() { return m_extraData.get(); } | 76 ExtraData* getExtraData() { return m_extraData.get(); } |
77 | 77 |
78 void didStartPrerender(); | 78 void didStartPrerender(); |
79 void didStopPrerender(); | 79 void didStopPrerender(); |
80 void didSendLoadForPrerender(); | 80 void didSendLoadForPrerender(); |
81 void didSendDOMContentLoadedForPrerender(); | 81 void didSendDOMContentLoadedForPrerender(); |
82 | 82 |
83 private: | 83 private: |
84 Prerender(PrerenderClient*, const KURL&, unsigned relTypes, const Referrer&) ; | 84 Prerender(PrerenderClient*, const KURL&, unsigned relTypes, const Referrer&) ; |
85 | 85 |
86 Member<PrerenderClient> m_client; | 86 // The embedder's prerendering support holds on to pending Prerender objects ; |
87 // those references should not keep the PrerenderClient alive -- if the clie nt | |
88 // becomes otherwise unreachable it should be GCed (at which point it will | |
89 // abandon this Prerender object.) | |
90 WeakMember<PrerenderClient> m_client; | |
sof
2016/04/18 11:33:53
An alternative to this is to have the WebPrivatePt
| |
87 | 91 |
88 const KURL m_url; | 92 const KURL m_url; |
89 const unsigned m_relTypes; | 93 const unsigned m_relTypes; |
90 const Referrer m_referrer; | 94 const Referrer m_referrer; |
91 | 95 |
92 RefPtr<ExtraData> m_extraData; | 96 RefPtr<ExtraData> m_extraData; |
93 }; | 97 }; |
94 | 98 |
95 } // namespace blink | 99 } // namespace blink |
96 | 100 |
97 #endif // Prerender_h | 101 #endif // Prerender_h |
OLD | NEW |