cc: For debugging, show checkerboards with the tile border color
[chromium-blink-merge.git] / extensions / renderer / script_injection_callback.cc
blob8b911d1c28c844850d1a4f0ffdf8c4de0b08937d
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.
5 #include "extensions/renderer/script_injection_callback.h"
7 namespace extensions {
9 ScriptInjectionCallback::ScriptInjectionCallback(
10 const CompleteCallback& injection_completed_callback)
11 : injection_completed_callback_(injection_completed_callback) {
14 ScriptInjectionCallback::~ScriptInjectionCallback() {
17 void ScriptInjectionCallback::completed(
18 const blink::WebVector<v8::Local<v8::Value> >& result) {
19 injection_completed_callback_.Run(result);
20 delete this;
23 } // namespace extensions