OLD | NEW |
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 #ifndef EXTENSIONS_RENDERER_DEFAULT_DISPATCHER_DELEGATE_H_ | 5 #ifndef EXTENSIONS_RENDERER_DEFAULT_DISPATCHER_DELEGATE_H_ |
6 #define EXTENSIONS_RENDERER_DEFAULT_DISPATCHER_DELEGATE_H_ | 6 #define EXTENSIONS_RENDERER_DEFAULT_DISPATCHER_DELEGATE_H_ |
7 | 7 |
8 #include "extensions/renderer/dispatcher_delegate.h" | 8 #include "extensions/renderer/dispatcher_delegate.h" |
9 | 9 |
10 namespace extensions { | 10 namespace extensions { |
11 | 11 |
12 class DefaultDispatcherDelegate : public DispatcherDelegate { | 12 class DefaultDispatcherDelegate : public DispatcherDelegate { |
13 public: | 13 public: |
14 DefaultDispatcherDelegate(); | 14 DefaultDispatcherDelegate(); |
15 virtual ~DefaultDispatcherDelegate(); | 15 virtual ~DefaultDispatcherDelegate(); |
16 | 16 |
17 // DispatcherDelegate implementation. | 17 // DispatcherDelegate implementation. |
18 virtual scoped_ptr<ScriptContext> CreateScriptContext( | 18 virtual scoped_ptr<ScriptContext> 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 const Extension* effective_extension, | 23 const Extension* effective_extension, |
24 Feature::Context effective_context_type) OVERRIDE; | 24 Feature::Context effective_context_type) override; |
25 }; | 25 }; |
26 | 26 |
27 } // namespace extensions | 27 } // namespace extensions |
28 | 28 |
29 #endif // EXTENSIONS_RENDERER_DEFAULT_DISPATCHER_DELEGATE_H_ | 29 #endif // EXTENSIONS_RENDERER_DEFAULT_DISPATCHER_DELEGATE_H_ |
OLD | NEW |