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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.cpp

Issue 2062203004: IDBObserver: Lifetime Management: Adding Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Observer moved to connection Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.cpp
diff --git a/third_party/WebKit/Source/devtools/front_end/audits/AuditCategory.js b/third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.cpp
similarity index 67%
copy from third_party/WebKit/Source/devtools/front_end/audits/AuditCategory.js
copy to third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.cpp
index 6b024e7b3bb3d6475ecfb850330fec856ef2013c..d18cef975b6d7ec48b1903747dc1241778c4406f 100644
--- a/third_party/WebKit/Source/devtools/front_end/audits/AuditCategory.js
+++ b/third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2014 Google 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 are
@@ -26,35 +26,30 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/**
- * @interface
- */
-WebInspector.AuditCategory = function()
+#include "modules/indexeddb/WebIDBObserverImpl.h"
+
+#include "core/dom/DOMException.h"
+#include "modules/indexeddb/IDBObserver.h"
+#include "platform/SharedBuffer.h"
+#include "public/platform/modules/indexeddb/WebIDBDatabase.h"
+
+using blink::WebIDBDatabase;
+
+namespace blink {
+
+// static
+PassOwnPtr<WebIDBObserverImpl> WebIDBObserverImpl::create(IDBObserver* observer)
{
+ return adoptPtr(new WebIDBObserverImpl(observer));
}
-WebInspector.AuditCategory.prototype = {
- /**
- * @return {string}
- */
- get id()
- {
- },
-
- /**
- * @return {string}
- */
- get displayName()
- {
- },
-
- /**
- * @param {!WebInspector.Target} target
- * @param {!Array.<!WebInspector.NetworkRequest>} requests
- * @param {function(!WebInspector.AuditRuleResult)} ruleResultCallback
- * @param {!WebInspector.Progress} progress
- */
- run: function(target, requests, ruleResultCallback, progress)
- {
- }
+WebIDBObserverImpl::WebIDBObserverImpl(IDBObserver* observer)
+ : m_observer(observer)
+{
}
+
+WebIDBObserverImpl::~WebIDBObserverImpl()
+{
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698