blob: 0ff591671eba44b6a6f9c3dc93bf8b70dc0e706b [file] [log] [blame]
// Copyright 2018 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 CHROMECAST_RENDERER_CAST_EXTENSIONS_DISPATCHER_DELEGATE_H_
#define CHROMECAST_RENDERER_CAST_EXTENSIONS_DISPATCHER_DELEGATE_H_
#include "base/macros.h"
#include "extensions/renderer/dispatcher_delegate.h"
class CastExtensionsDispatcherDelegate
: public extensions::DispatcherDelegate {
public:
CastExtensionsDispatcherDelegate();
~CastExtensionsDispatcherDelegate() override;
private:
// extensions::DispatcherDelegate implementation.
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 OnActiveExtensionsUpdated(
const std::set<std::string>& extensions_ids) override;
void InitializeBindingsSystem(
extensions::Dispatcher* dispatcher,
extensions::NativeExtensionBindingsSystem* bindings_system) override;
DISALLOW_COPY_AND_ASSIGN(CastExtensionsDispatcherDelegate);
};
#endif // CHROMECAST_RENDERER_CAST_EXTENSIONS_DISPATCHER_DELEGATE_H_