| Index: chrome/renderer/extensions/chrome_v8_context.h
|
| diff --git a/chrome/renderer/extensions/chrome_v8_context.h b/chrome/renderer/extensions/chrome_v8_context.h
|
| index 19165ab608d55b44b8b874c99ed46f185c2137c6..a5bddb87e4b3ffdff4b834b666c54732da12449a 100644
|
| --- a/chrome/renderer/extensions/chrome_v8_context.h
|
| +++ b/chrome/renderer/extensions/chrome_v8_context.h
|
| @@ -28,7 +28,8 @@ class ChromeV8Context {
|
| public:
|
| ChromeV8Context(v8::Handle<v8::Context> context,
|
| WebKit::WebFrame* frame,
|
| - const std::string& extension_id);
|
| + const std::string& extension_id,
|
| + bool is_content_script);
|
| ~ChromeV8Context();
|
|
|
| v8::Handle<v8::Context> v8_context() const {
|
| @@ -46,6 +47,10 @@ class ChromeV8Context {
|
| web_frame_ = NULL;
|
| }
|
|
|
| + bool is_content_script() const {
|
| + return is_content_script_;
|
| + }
|
| +
|
| // Returns a special Chrome-specific hidden object that is associated with a
|
| // context, but not reachable from the JavaScript in that context. This is
|
| // used by our v8::Extension implementations as a way to share code and as a
|
| @@ -96,6 +101,9 @@ class ChromeV8Context {
|
| // The extension ID this context is associated with.
|
| std::string extension_id_;
|
|
|
| + // Whether the context is for a content script.
|
| + bool is_content_script_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ChromeV8Context);
|
| };
|
|
|
|
|