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

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

Issue 196543003: Remove modules/webdatabase dependency from core. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ActiveDOMObject.cpp ('k') | Source/core/dom/ContextLifecycleNotifier.cpp » ('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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 typedef HashSet<ActiveDOMObject*> ActiveDOMObjectSet; 47 typedef HashSet<ActiveDOMObject*> ActiveDOMObjectSet;
48 48
49 const ActiveDOMObjectSet& activeDOMObjects() const { return m_activeDOMObjec ts; } 49 const ActiveDOMObjectSet& activeDOMObjects() const { return m_activeDOMObjec ts; }
50 50
51 virtual void addObserver(Observer*) OVERRIDE; 51 virtual void addObserver(Observer*) OVERRIDE;
52 virtual void removeObserver(Observer*) OVERRIDE; 52 virtual void removeObserver(Observer*) OVERRIDE;
53 53
54 void notifyResumingActiveDOMObjects(); 54 void notifyResumingActiveDOMObjects();
55 void notifySuspendingActiveDOMObjects(); 55 void notifySuspendingActiveDOMObjects();
56 void notifyWillStopActiveDOMObjects();
56 void notifyStoppingActiveDOMObjects(); 57 void notifyStoppingActiveDOMObjects();
57 58
58 bool contains(ActiveDOMObject* object) const { return m_activeDOMObjects.con tains(object); } 59 bool contains(ActiveDOMObject* object) const { return m_activeDOMObjects.con tains(object); }
59 bool hasPendingActivity() const; 60 bool hasPendingActivity() const;
60 61
61 protected: 62 protected:
62 explicit ContextLifecycleNotifier(ExecutionContext*); 63 explicit ContextLifecycleNotifier(ExecutionContext*);
63 64
64 private: 65 private:
65 ActiveDOMObjectSet m_activeDOMObjects; 66 ActiveDOMObjectSet m_activeDOMObjects;
66 }; 67 };
67 68
68 inline PassOwnPtr<ContextLifecycleNotifier> ContextLifecycleNotifier::create(Exe cutionContext* context) 69 inline PassOwnPtr<ContextLifecycleNotifier> ContextLifecycleNotifier::create(Exe cutionContext* context)
69 { 70 {
70 return adoptPtr(new ContextLifecycleNotifier(context)); 71 return adoptPtr(new ContextLifecycleNotifier(context));
71 } 72 }
72 73
73 } // namespace WebCore 74 } // namespace WebCore
74 75
75 #endif // ContextLifecycleNotifier_h 76 #endif // ContextLifecycleNotifier_h
OLDNEW
« no previous file with comments | « Source/core/dom/ActiveDOMObject.cpp ('k') | Source/core/dom/ContextLifecycleNotifier.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698