OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 { | 76 { |
77 if (m_lifecycleContext) | 77 if (m_lifecycleContext) |
78 static_cast<Notifier*>(m_lifecycleContext.get())->removeObserver(static_
cast<Observer*>(this)); | 78 static_cast<Notifier*>(m_lifecycleContext.get())->removeObserver(static_
cast<Observer*>(this)); |
79 | 79 |
80 m_lifecycleContext = context; | 80 m_lifecycleContext = context; |
81 | 81 |
82 if (m_lifecycleContext) | 82 if (m_lifecycleContext) |
83 static_cast<Notifier*>(m_lifecycleContext.get())->addObserver(static_cas
t<Observer*>(this)); | 83 static_cast<Notifier*>(m_lifecycleContext.get())->addObserver(static_cas
t<Observer*>(this)); |
84 } | 84 } |
85 | 85 |
| 86 EAGERLY_SWEEP_TEMPLATE(blink::LifecycleObserver); |
| 87 |
86 } // namespace blink | 88 } // namespace blink |
87 | 89 |
88 #endif // LifecycleObserver_h | 90 #endif // LifecycleObserver_h |
OLD | NEW |