summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/default_dispatcher_delegate.h
blob: 1ee92ab7ad0a1f6f7464128611bcb84f20b2a901 (plain)
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
// 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.

#ifndef EXTENSIONS_RENDERER_DEFAULT_DISPATCHER_DELEGATE_H
#define EXTENSIONS_RENDERER_DEFAULT_DISPATCHER_DELEGATE_H

#include "extensions/renderer/dispatcher_delegate.h"

namespace extensions {

class DefaultDispatcherDelegate : public DispatcherDelegate {
 public:
  DefaultDispatcherDelegate();
  virtual ~DefaultDispatcherDelegate();

  // DispatcherDelegate implementation.
  virtual scoped_ptr<ScriptContext> CreateScriptContext(
      const v8::Handle<v8::Context>& v8_context,
      blink::WebFrame* frame,
      const Extension* extension,
      Feature::Context context_type) OVERRIDE;
};

}  // namespace extensions

#endif  // EXTENSIONS_RENDERER_DEFAULT_DISPATCHER_DELEGATE_H