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

Side by Side Diff: chrome/renderer/extensions/chrome_v8_context.h

Issue 498513002: Respect the clipboardRead and clipboardWrite permissions in content scripts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address more comments Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc ('k') | chrome/renderer/extensions/chrome_v8_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698