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

Unified Diff: third_party/WebKit/Source/modules/extensions/DeveloperPrivate.h

Issue 2074263002: [Experimental] Fool around with exposing extension bindings via blink Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/extensions/DeveloperPrivate.h
diff --git a/third_party/WebKit/Source/modules/extensions/DeveloperPrivate.h b/third_party/WebKit/Source/modules/extensions/DeveloperPrivate.h
new file mode 100644
index 0000000000000000000000000000000000000000..6a6e723dd790dc057100202c3fb034f234bcf2b0
--- /dev/null
+++ b/third_party/WebKit/Source/modules/extensions/DeveloperPrivate.h
@@ -0,0 +1,42 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DeveloperPrivate_h
+#define DeveloperPrivate_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "extensions/common/api/mojo/developer_private.mojom-blink.h"
+#include "platform/heap/GarbageCollected.h"
+#include "platform/heap/Heap.h"
+
+namespace blink {
+
+class LocalFrame;
+class UpdateExtensionConfigurationParams;
+class VoidCallback;
+
+class DeveloperPrivate : public GarbageCollectedFinalized<DeveloperPrivate>, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+public:
+ DeveloperPrivate(LocalFrame*);
+ virtual ~DeveloperPrivate() {}
+
+ static DeveloperPrivate* create(LocalFrame* frame)
+ {
+ return new DeveloperPrivate(frame);
+ }
+
+ void updateExtensionConfiguration(UpdateExtensionConfigurationParams&, VoidCallback*);
+ void onUpdateExtensionConfigurationCallback(VoidCallback*);
+
+ DECLARE_TRACE();
+
+private:
+ extensions::mojom::blink::DeveloperPrivatePtr m_developerPrivate;
+};
+
+} // namespace blink
+
+#endif // DeveloperPrivate

Powered by Google App Engine
This is Rietveld 408576698