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

Side by Side Diff: extensions/renderer/default_dispatcher_delegate.cc

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
« no previous file with comments | « extensions/renderer/default_dispatcher_delegate.h ('k') | extensions/renderer/dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "extensions/renderer/default_dispatcher_delegate.h" 5 #include "extensions/renderer/default_dispatcher_delegate.h"
6 6
7 #include "extensions/renderer/script_context.h" 7 #include "extensions/renderer/script_context.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 10
11 DefaultDispatcherDelegate::DefaultDispatcherDelegate() { 11 DefaultDispatcherDelegate::DefaultDispatcherDelegate() {
12 } 12 }
13 13
14 DefaultDispatcherDelegate::~DefaultDispatcherDelegate() { 14 DefaultDispatcherDelegate::~DefaultDispatcherDelegate() {
15 } 15 }
16 16
17 // DispatcherDelegate implementation. 17 // DispatcherDelegate implementation.
18 scoped_ptr<ScriptContext> DefaultDispatcherDelegate::CreateScriptContext( 18 scoped_ptr<ScriptContext> DefaultDispatcherDelegate::CreateScriptContext(
19 const v8::Handle<v8::Context>& v8_context, 19 const v8::Handle<v8::Context>& v8_context,
20 blink::WebFrame* frame, 20 blink::WebFrame* frame,
21 const Extension* extension, 21 const Extension* extension,
22 Feature::Context context_type) { 22 Feature::Context context_type,
23 return make_scoped_ptr( 23 const Extension* effective_extension,
24 new ScriptContext(v8_context, frame, extension, context_type)); 24 Feature::Context effective_context_type) {
25 return make_scoped_ptr(new ScriptContext(v8_context,
26 frame,
27 extension,
28 context_type,
29 effective_extension,
30 effective_context_type));
25 } 31 }
26 32
27 } // namespace extensions 33 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/default_dispatcher_delegate.h ('k') | extensions/renderer/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698