Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: Source/core/dom/ContextLifecycleNotifier.h

Issue 347643002: Reduce forward declarations in core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/Comment.h ('k') | Source/core/dom/DOMImplementation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/Comment.h ('k') | Source/core/dom/DOMImplementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698