| 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 20 matching lines...) Expand all Loading... |
| 31 #include "core/page/Page.h" | 31 #include "core/page/Page.h" |
| 32 #include "platform/LifecycleObserver.h" | 32 #include "platform/LifecycleObserver.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class LocalFrame; | 36 class LocalFrame; |
| 37 | 37 |
| 38 class CORE_EXPORT PageLifecycleObserver : public LifecycleObserver<Page, PageLif
ecycleObserver> { | 38 class CORE_EXPORT PageLifecycleObserver : public LifecycleObserver<Page, PageLif
ecycleObserver> { |
| 39 public: | 39 public: |
| 40 virtual void pageVisibilityChanged() { } | 40 virtual void pageVisibilityChanged() { } |
| 41 virtual void didCommitLoad(LocalFrame*) { } | |
| 42 | 41 |
| 43 Page* page() const { return lifecycleContext(); } | 42 Page* page() const { return lifecycleContext(); } |
| 44 | 43 |
| 45 protected: | 44 protected: |
| 46 explicit PageLifecycleObserver(Page* page) | 45 explicit PageLifecycleObserver(Page* page) |
| 47 : LifecycleObserver(page) | 46 : LifecycleObserver(page) |
| 48 { | 47 { |
| 49 } | 48 } |
| 50 | 49 |
| 51 }; | 50 }; |
| 52 | 51 |
| 53 } // namespace blink | 52 } // namespace blink |
| 54 | 53 |
| 55 #endif // PageLifecycleObserver_h | 54 #endif // PageLifecycleObserver_h |
| OLD | NEW |