blob: d7354981869dfe88e86ee4841e16ecdf3decb890 [file] [log] [blame]
// 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 CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_DISPATCHER_DELEGATE_H_
#define CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_DISPATCHER_DELEGATE_H_
#include "base/macros.h"
#include "extensions/renderer/dispatcher_delegate.h"
class ChromeExtensionsDispatcherDelegate
: public extensions::DispatcherDelegate {
public:
ChromeExtensionsDispatcherDelegate();
~ChromeExtensionsDispatcherDelegate() override;
private:
// extensions::DispatcherDelegate implementation.
void InitOriginPermissions(const extensions::Extension* extension,
bool is_extension_active) override;
void RegisterNativeHandlers(
extensions::Dispatcher* dispatcher,
extensions::ModuleSystem* module_system,
extensions::ExtensionBindingsSystem* bindings_system,
extensions::ScriptContext* context) override;
void PopulateSourceMap(
extensions::ResourceBundleSourceMap* source_map) override;
void RequireAdditionalModules(extensions::ScriptContext* context) override;
void OnActiveExtensionsUpdated(
const std::set<std::string>& extensions_ids) override;
DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsDispatcherDelegate);
};
#endif // CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_DISPATCHER_DELEGATE_H_