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

Unified Diff: extensions/renderer/display_source_custom_bindings.h

Issue 2770403002: [Extensions Bindings] Remove ScriptContext::DispatchEvent (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/dispatcher_delegate.h ('k') | extensions/renderer/display_source_custom_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/display_source_custom_bindings.h
diff --git a/extensions/renderer/display_source_custom_bindings.h b/extensions/renderer/display_source_custom_bindings.h
index 13fb45ee19bf580204cccc6adab16c56d251220d..c1a5c12088317323d442c7d011ea36de329f17af 100644
--- a/extensions/renderer/display_source_custom_bindings.h
+++ b/extensions/renderer/display_source_custom_bindings.h
@@ -14,12 +14,14 @@
#include "v8/include/v8.h"
namespace extensions {
+class ExtensionBindingsSystem;
class ScriptContext;
// Implements custom bindings for the displaySource API.
class DisplaySourceCustomBindings : public ObjectBackedNativeHandler {
public:
- explicit DisplaySourceCustomBindings(ScriptContext* context);
+ DisplaySourceCustomBindings(ScriptContext* context,
+ ExtensionBindingsSystem* bindings_system);
~DisplaySourceCustomBindings() override;
@@ -54,6 +56,9 @@ class DisplaySourceCustomBindings : public ObjectBackedNativeHandler {
DisplaySourceSession* GetDisplaySession(int sink_id) const;
std::map<int, std::unique_ptr<DisplaySourceSession>> session_map_;
+
+ ExtensionBindingsSystem* bindings_system_;
+
base::WeakPtrFactory<DisplaySourceCustomBindings> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(DisplaySourceCustomBindings);
« no previous file with comments | « extensions/renderer/dispatcher_delegate.h ('k') | extensions/renderer/display_source_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698