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

Side by Side Diff: extensions/renderer/script_injection_callback.h

Issue 878513005: Extensions: suspend extension's scripts when V8 is paused (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #ifndef EXTENSIONS_RENDERER_SCRIPT_INJECTION_CALLBACK_H_
6 #define EXTENSIONS_RENDERER_SCRIPT_INJECTION_CALLBACK_H_
7
8 #include "base/macros.h"
9 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h"
10 #include "v8/include/v8.h"
11
12 namespace blink {
13 class WebLocalFrame;
14 template<typename T> class WebVector;
15 }
16
17 namespace extensions {
18 class ScriptInjection;
19
20 // A wrapper around a callback to notify a script injection when injection
21 // completes.
22 // This class manages its own lifetime.
23 class ScriptInjectionCallback : public blink::WebScriptExecutionCallback {
24 public:
25 ScriptInjectionCallback(ScriptInjection* injection,
26 blink::WebLocalFrame* web_frame);
27 ~ScriptInjectionCallback() override;
28
29 void completed(
30 const blink::WebVector<v8::Local<v8::Value> >& result) override;
31
32 private:
33 ScriptInjection* injection_;
34
35 blink::WebLocalFrame* web_frame_;
36
37 DISALLOW_COPY_AND_ASSIGN(ScriptInjectionCallback);
38 };
39
40 } // namespace extensions
41
42 #endif // EXTENSIONS_RENDERER_SCRIPT_INJECTION_CALLBACK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698