Home | History | Annotate | Download | only in renderer
      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.
      4 
      5 #include "extensions/renderer/default_dispatcher_delegate.h"
      6 
      7 #include "extensions/renderer/script_context.h"
      8 
      9 namespace extensions {
     10 
     11 DefaultDispatcherDelegate::DefaultDispatcherDelegate() {
     12 }
     13 
     14 DefaultDispatcherDelegate::~DefaultDispatcherDelegate() {
     15 }
     16 
     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   return make_scoped_ptr(
     24       new ScriptContext(v8_context, frame, extension, context_type));
     25 }
     26 
     27 }  // namespace extensions
     28