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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "extensions/renderer/script_injection_callback.h"
6
7 #include "extensions/renderer/script_injection.h"
8
9 namespace extensions {
10
11 ScriptInjectionCallback::ScriptInjectionCallback(
12 ScriptInjection* injection,
13 blink::WebLocalFrame* web_frame)
14 : injection_(injection)
15 , web_frame_(web_frame) {
Devlin 2015/02/27 18:25:32 comma on the previous line.
kozy 2015/02/28 15:23:22 Done.
16 }
17
18 ScriptInjectionCallback::~ScriptInjectionCallback() {
19 }
20
21 void ScriptInjectionCallback::completed(
22 const blink::WebVector<v8::Local<v8::Value> >& result) {
23 injection_->OnJSInjectionCompleted(web_frame_, result);
Devlin 2015/02/27 18:25:32 indentation off.
kozy 2015/02/28 15:23:22 Done.
24 delete this;
25 }
26
27 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698