Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / renderer / extensions / chrome_v8_context.h
blobd4779dbabdf1a93f5fba649b6b03cbee11ee62a1
1 // Copyright (c) 2012 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 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_
6 #define CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "chrome/renderer/extensions/pepper_request_proxy.h"
13 #include "extensions/common/features/feature.h"
14 #include "extensions/renderer/module_system.h"
15 #include "extensions/renderer/request_sender.h"
16 #include "extensions/renderer/safe_builtins.h"
17 #include "extensions/renderer/scoped_persistent.h"
18 #include "extensions/renderer/script_context.h"
19 #include "v8/include/v8.h"
21 namespace blink {
22 class WebFrame;
25 namespace content {
26 class RenderView;
29 namespace extensions {
30 class Extension;
32 // Chrome's wrapper for a v8 context.
33 class ChromeV8Context : public ScriptContext {
34 public:
35 ChromeV8Context(const v8::Handle<v8::Context>& context,
36 blink::WebFrame* frame,
37 const Extension* extension,
38 Feature::Context context_type);
40 PepperRequestProxy* pepper_request_proxy() {
41 return &pepper_request_proxy_;
44 private:
45 // The proxy for this context for making API calls from Pepper via Javascript.
46 PepperRequestProxy pepper_request_proxy_;
48 DISALLOW_COPY_AND_ASSIGN(ChromeV8Context);
51 } // namespace extensions
53 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_