| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 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 17 matching lines...) Expand all Loading... |
| 28 #define ContextLifecycleNotifier_h | 28 #define ContextLifecycleNotifier_h |
| 29 | 29 |
| 30 #include "core/dom/ActiveDOMObject.h" | 30 #include "core/dom/ActiveDOMObject.h" |
| 31 #include "platform/LifecycleNotifier.h" | 31 #include "platform/LifecycleNotifier.h" |
| 32 #include "wtf/HashSet.h" | 32 #include "wtf/HashSet.h" |
| 33 #include "wtf/PassOwnPtr.h" | 33 #include "wtf/PassOwnPtr.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 class ActiveDOMObject; | 37 class ActiveDOMObject; |
| 38 class ContextLifecycleObserver; | |
| 39 class ExecutionContext; | 38 class ExecutionContext; |
| 40 | 39 |
| 41 class ContextLifecycleNotifier : public LifecycleNotifier<ExecutionContext> { | 40 class ContextLifecycleNotifier : public LifecycleNotifier<ExecutionContext> { |
| 42 public: | 41 public: |
| 43 static PassOwnPtr<ContextLifecycleNotifier> create(ExecutionContext*); | 42 static PassOwnPtr<ContextLifecycleNotifier> create(ExecutionContext*); |
| 44 | 43 |
| 45 virtual ~ContextLifecycleNotifier(); | 44 virtual ~ContextLifecycleNotifier(); |
| 46 | 45 |
| 47 typedef HashSet<ActiveDOMObject*> ActiveDOMObjectSet; | 46 typedef HashSet<ActiveDOMObject*> ActiveDOMObjectSet; |
| 48 | 47 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 inline PassOwnPtr<ContextLifecycleNotifier> ContextLifecycleNotifier::create(Exe
cutionContext* context) | 67 inline PassOwnPtr<ContextLifecycleNotifier> ContextLifecycleNotifier::create(Exe
cutionContext* context) |
| 69 { | 68 { |
| 70 return adoptPtr(new ContextLifecycleNotifier(context)); | 69 return adoptPtr(new ContextLifecycleNotifier(context)); |
| 71 } | 70 } |
| 72 | 71 |
| 73 } // namespace WebCore | 72 } // namespace WebCore |
| 74 | 73 |
| 75 #endif // ContextLifecycleNotifier_h | 74 #endif // ContextLifecycleNotifier_h |
| OLD | NEW |