Use multiline attribute to check for IA2_STATE_MULTILINE.
[chromium-blink-merge.git] / chrome / renderer / extensions / chrome_extensions_dispatcher_delegate.h
blob8275e2bf00872d06a005f5cd597aa5bbf3248a34
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 "base/macros.h"
9 #include "extensions/renderer/dispatcher_delegate.h"
11 class ChromeExtensionsDispatcherDelegate
12 : public extensions::DispatcherDelegate {
13 public:
14 ChromeExtensionsDispatcherDelegate();
15 ~ChromeExtensionsDispatcherDelegate() override;
17 private:
18 // extensions::DispatcherDelegate implementation.
19 void InitOriginPermissions(const extensions::Extension* extension,
20 bool is_extension_active) override;
21 void RegisterNativeHandlers(extensions::Dispatcher* dispatcher,
22 extensions::ModuleSystem* module_system,
23 extensions::ScriptContext* context) override;
24 void PopulateSourceMap(
25 extensions::ResourceBundleSourceMap* source_map) override;
26 void RequireAdditionalModules(extensions::ScriptContext* context,
27 bool is_within_platform_app) override;
28 void OnActiveExtensionsUpdated(
29 const std::set<std::string>& extensions_ids) override;
30 void SetChannel(int channel) override;
32 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsDispatcherDelegate);
35 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_DISPATCHER_DELEGATE_H_