OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright (C) 2013 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2013 Google Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 13 matching lines...) Expand all Loading... |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef PageLifecycleObserver_h | 27 #ifndef PageLifecycleObserver_h |
28 #define PageLifecycleObserver_h | 28 #define PageLifecycleObserver_h |
29 | 29 |
30 #include "core/platform/LifecycleObserver.h" | 30 #include "core/platform/LifecycleObserver.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
| 34 class Frame; |
34 class Page; | 35 class Page; |
35 | 36 |
36 class PageLifecycleObserver : public LifecycleObserver { | 37 class PageLifecycleObserver : public LifecycleObserver { |
37 public: | 38 public: |
38 explicit PageLifecycleObserver(Page*); | 39 explicit PageLifecycleObserver(Page*); |
39 virtual ~PageLifecycleObserver(); | 40 virtual ~PageLifecycleObserver(); |
40 | 41 |
41 Page* page() const; | 42 Page* page() const; |
42 | 43 |
43 virtual void pageVisibilityChanged() { } | 44 virtual void pageVisibilityChanged() { } |
| 45 virtual void didCommitLoad(Frame*) { } |
44 }; | 46 }; |
45 | 47 |
46 } // namespace WebCore | 48 } // namespace WebCore |
47 | 49 |
48 #endif // PageLifecycleObserver_h | 50 #endif // PageLifecycleObserver_h |
OLD | NEW |