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

Unified Diff: extensions/renderer/script_injection_callback.cc

Issue 878513005: Extensions: suspend extension's scripts when V8 is paused (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 10 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: extensions/renderer/script_injection_callback.cc
diff --git a/extensions/renderer/script_injection_callback.cc b/extensions/renderer/script_injection_callback.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d4357a607f0199ffb55a09098f6e52d9c5538349
--- /dev/null
+++ b/extensions/renderer/script_injection_callback.cc
@@ -0,0 +1,27 @@
+// Copyright 2015 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.
+
+#include "extensions/renderer/script_injection_callback.h"
+
+#include "extensions/renderer/script_injection.h"
+
+namespace extensions {
+
+ScriptInjectionCallback::ScriptInjectionCallback(
+ ScriptInjection* injection,
+ blink::WebLocalFrame* web_frame)
+ : injection_(injection),
+ web_frame_(web_frame) {
+}
+
+ScriptInjectionCallback::~ScriptInjectionCallback() {
+}
+
+void ScriptInjectionCallback::completed(
+ const blink::WebVector<v8::Local<v8::Value> >& result) {
+ injection_->OnJSInjectionCompleted(web_frame_, result);
+ delete this;
+}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698