forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault_dispatcher_delegate.cc
33 lines (26 loc) · 1.12 KB
/
default_dispatcher_delegate.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/renderer/default_dispatcher_delegate.h"
#include "extensions/renderer/script_context.h"
namespace extensions {
DefaultDispatcherDelegate::DefaultDispatcherDelegate() {
}
DefaultDispatcherDelegate::~DefaultDispatcherDelegate() {
}
// DispatcherDelegate implementation.
scoped_ptr<ScriptContext> DefaultDispatcherDelegate::CreateScriptContext(
const v8::Handle<v8::Context>& v8_context,
blink::WebFrame* frame,
const Extension* extension,
Feature::Context context_type,
const Extension* effective_extension,
Feature::Context effective_context_type) {
return make_scoped_ptr(new ScriptContext(v8_context,
frame,
extension,
context_type,
effective_extension,
effective_context_type));
}
} // namespace extensions