| Index: third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.h
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/audits/AuditCategory.js b/third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.h
|
| similarity index 65%
|
| copy from third_party/WebKit/Source/devtools/front_end/audits/AuditCategory.js
|
| copy to third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.h
|
| index 6b024e7b3bb3d6475ecfb850330fec856ef2013c..3ec41b4347902f93662ca138ebe935a33d8f47b7 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/audits/AuditCategory.js
|
| +++ b/third_party/WebKit/Source/modules/indexeddb/WebIDBObserverImpl.h
|
| @@ -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,33 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -/**
|
| - * @interface
|
| - */
|
| -WebInspector.AuditCategory = function()
|
| -{
|
| -}
|
| -
|
| -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)
|
| - {
|
| - }
|
| -}
|
| +#ifndef WebIDBObserverImpl_h
|
| +#define WebIDBObserverImpl_h
|
| +
|
| +#include "public/platform/WebPrivatePtr.h"
|
| +#include "public/platform/modules/indexeddb/WebIDBObserver.h"
|
| +#include <memory>
|
| +
|
| +namespace blink {
|
| +
|
| +class IDBObserver;
|
| +
|
| +class WebIDBObserverImpl final : public WebIDBObserver {
|
| + USING_FAST_MALLOC(WebIDBObserverImpl);
|
| +
|
| +public:
|
| + static std::unique_ptr<WebIDBObserverImpl> create(IDBObserver*);
|
| +
|
| + ~WebIDBObserverImpl() override;
|
| +
|
| + void removeObserver(int32_t id) override;
|
| +
|
| +private:
|
| + explicit WebIDBObserverImpl(IDBObserver*);
|
| +
|
| + Persistent<IDBObserver> m_observer;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WebIDBObserverImpl_h
|
|
|