| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_ |
| 6 #define CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 namespace extensions { | 28 namespace extensions { |
| 29 class Extension; | 29 class Extension; |
| 30 | 30 |
| 31 // Chrome's wrapper for a v8 context. | 31 // Chrome's wrapper for a v8 context. |
| 32 class ChromeV8Context : public ScriptContext { | 32 class ChromeV8Context : public ScriptContext { |
| 33 public: | 33 public: |
| 34 ChromeV8Context(const v8::Handle<v8::Context>& context, | 34 ChromeV8Context(const v8::Handle<v8::Context>& context, |
| 35 blink::WebFrame* frame, | 35 blink::WebFrame* frame, |
| 36 const Extension* extension, | 36 const Extension* extension, |
| 37 Feature::Context context_type); | 37 Feature::Context context_type, |
| 38 const Extension* effective_extension, |
| 39 Feature::Context effective_context_type); |
| 38 | 40 |
| 39 private: | 41 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(ChromeV8Context); | 42 DISALLOW_COPY_AND_ASSIGN(ChromeV8Context); |
| 41 }; | 43 }; |
| 42 | 44 |
| 43 } // namespace extensions | 45 } // namespace extensions |
| 44 | 46 |
| 45 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_ | 47 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_ |
| OLD | NEW |