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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void add(const WebPrerender&) = 0; | 47 virtual void add(const WebPrerender&) = 0; |
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 th
e page cache. This | 52 // A prerender is abandoned when it's navigated away from or suspended in th
e page cache. This |
53 // is a weaker signal than cancel(), since the launcher hasn't indicated tha
t the prerender isn't | 53 // is a weaker signal than cancel(), since the launcher hasn't indicated tha
t the prerender isn't |
54 // wanted, and we may end up using it after, for instance, a short redirect
chain. | 54 // wanted, and we may end up using it after, for instance, a short redirect
chain. |
55 virtual void abandon(const WebPrerender&) = 0; | 55 virtual void abandon(const WebPrerender&) = 0; |
56 | 56 |
| 57 // The renderer is shutting down, the prerendering layer is not allowed to |
| 58 // access Blink objects after this notification. |
| 59 virtual void detachRenderer() = 0; |
| 60 |
57 protected: | 61 protected: |
58 WebPrerenderingSupport() { } | 62 WebPrerenderingSupport() { } |
59 virtual ~WebPrerenderingSupport() { } | 63 virtual ~WebPrerenderingSupport() { } |
60 | 64 |
61 private: | 65 private: |
62 static WebPrerenderingSupport* s_platform; | 66 static WebPrerenderingSupport* s_platform; |
63 }; | 67 }; |
64 | 68 |
65 } // namespace blink | 69 } // namespace blink |
66 | 70 |
67 #endif // WebPrerenderingSupport_h | 71 #endif // WebPrerenderingSupport_h |
OLD | NEW |