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

Unified Diff: Source/core/page/PageLifecycleObserver.cpp

Issue 18777003: Extract simpler classes for observing context lifecycle and observe Page lifecycle inNavigatorVibra… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Ensure m_scriptExecutionContext is maintained and not just null. Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/page/PageLifecycleObserver.cpp
diff --git a/Source/core/dom/TransformSourceLibxslt.cpp b/Source/core/page/PageLifecycleObserver.cpp
similarity index 81%
copy from Source/core/dom/TransformSourceLibxslt.cpp
copy to Source/core/page/PageLifecycleObserver.cpp
index 6580a117a88754403fc4aada74a3778fe29d335d..444bb4ed22b69fa07506fc04ac500cac32792efd 100644
--- a/Source/core/dom/TransformSourceLibxslt.cpp
+++ b/Source/core/page/PageLifecycleObserver.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 Apple Inc. All rights reserved.
+ * Copyright (C) 2013 Google Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,22 +23,22 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "config.h"
-#include "core/dom/TransformSource.h"
+#include "config.h"
+#include "core/page/PageLifecycleObserver.h"
-#include <libxml/tree.h>
+#include "core/page/Page.h"
namespace WebCore {
-TransformSource::TransformSource(xmlDocPtr source)
- : m_source(source)
+PageLifecycleObserver::PageLifecycleObserver(Page* page)
+ : LifecycleObserver(page)
{
}
-TransformSource::~TransformSource()
+PageLifecycleObserver::~PageLifecycleObserver()
{
- xmlFreeDoc(m_source);
+ observeContext(0, PageLifecycleObserverType);
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698