OLD | NEW |
---|---|
(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 struct ScriptsRunInfo; | |
Devlin
2015/02/27 18:25:33
not needed.
kozy
2015/02/28 15:23:22
Done.
| |
20 | |
21 class ScriptInjectionCallback : public blink::WebScriptExecutionCallback { | |
Devlin
2015/02/27 18:25:32
Add class comment.
kozy
2015/02/28 15:23:22
Done.
| |
22 public: | |
23 | |
Devlin
2015/02/27 18:25:32
nit: remove this line.
kozy
2015/02/28 15:23:22
Done.
| |
24 ScriptInjectionCallback(ScriptInjection* injection, | |
25 blink::WebLocalFrame* web_frame); | |
26 | |
27 virtual ~ScriptInjectionCallback(); | |
Devlin
2015/02/27 18:25:33
~ScriptInjectionCallback() override;
kozy
2015/02/28 15:23:22
Done.
| |
28 | |
29 virtual void completed( | |
Devlin
2015/02/27 18:25:33
no virtual needed.
kozy
2015/02/28 15:23:22
Done.
| |
30 const blink::WebVector<v8::Local<v8::Value> >&) override; | |
Devlin
2015/02/27 18:25:32
indentation off.
kozy
2015/02/28 15:23:22
Done.
| |
31 | |
32 private: | |
33 | |
Devlin
2015/02/27 18:25:32
Remove this line.
kozy
2015/02/28 15:23:22
Done.
| |
34 ScriptInjection* injection_; | |
Devlin
2015/02/27 18:25:32
Comment on lifetime.
kozy
2015/02/28 15:23:22
Added to class comment.
| |
35 | |
36 blink::WebLocalFrame* web_frame_; | |
37 | |
38 DISALLOW_COPY_AND_ASSIGN(ScriptInjectionCallback); | |
39 }; | |
40 | |
41 } // namespace extensions | |
42 | |
43 #endif // EXTENSIONS_RENDERER_SCRIPT_INJECTION_CALLBACK_H_ | |
OLD | NEW |