Reland the ULONG -> SIZE_T change from 317177
[chromium-blink-merge.git] / extensions / renderer / default_dispatcher_delegate.cc
blob25af678cf670d80bcfa4212307083dbe4e8cf1fd
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
3 // found in the LICENSE file.
5 #include "extensions/renderer/default_dispatcher_delegate.h"
7 #include "extensions/renderer/script_context.h"
9 namespace extensions {
11 DefaultDispatcherDelegate::DefaultDispatcherDelegate() {
14 DefaultDispatcherDelegate::~DefaultDispatcherDelegate() {
17 // DispatcherDelegate implementation.
18 scoped_ptr<ScriptContext> DefaultDispatcherDelegate::CreateScriptContext(
19 const v8::Handle<v8::Context>& v8_context,
20 blink::WebFrame* frame,
21 const Extension* extension,
22 Feature::Context context_type,
23 const Extension* effective_extension,
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));
33 } // namespace extensions