Delete chrome.mediaGalleriesPrivate because the functionality unique to it has since...
[chromium-blink-merge.git] / chrome / renderer / extensions / chrome_extensions_dispatcher_delegate.h
blobd94da2380d575b1744aa4ae5c4e595b62048ca26
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 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_DISPATCHER_DELEGATE_H_
6 #define CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_DISPATCHER_DELEGATE_H_
8 #include "extensions/renderer/dispatcher_delegate.h"
10 class ChromeExtensionsDispatcherDelegate
11 : public extensions::DispatcherDelegate {
12 public:
13 ChromeExtensionsDispatcherDelegate();
14 ~ChromeExtensionsDispatcherDelegate() override;
16 private:
17 // extensions::DispatcherDelegate implementation.
18 scoped_ptr<extensions::ScriptContext> CreateScriptContext(
19 const v8::Handle<v8::Context>& v8_context,
20 blink::WebFrame* frame,
21 const extensions::Extension* extension,
22 extensions::Feature::Context context_type,
23 const extensions::Extension* effective_extension,
24 extensions::Feature::Context effective_context_type) override;
25 void InitOriginPermissions(const extensions::Extension* extension,
26 bool is_extension_active) override;
27 void RegisterNativeHandlers(extensions::Dispatcher* dispatcher,
28 extensions::ModuleSystem* module_system,
29 extensions::ScriptContext* context) override;
30 void PopulateSourceMap(
31 extensions::ResourceBundleSourceMap* source_map) override;
32 void RequireAdditionalModules(extensions::ScriptContext* context,
33 bool is_within_platform_app) override;
34 void OnActiveExtensionsUpdated(
35 const std::set<std::string>& extensions_ids) override;
36 void SetChannel(int channel) override;
38 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsDispatcherDelegate);
41 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_DISPATCHER_DELEGATE_H_