blob: 8acf835f344d020527c963db3f7f759d542ed00b [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 EXTENSIONS_SHELL_RENDERER_SHELL_EXTENSIONS_RENDERER_CLIENT_H_
#define EXTENSIONS_SHELL_RENDERER_SHELL_EXTENSIONS_RENDERER_CLIENT_H_
#include <memory>
#include "base/macros.h"
#include "extensions/renderer/extensions_renderer_client.h"
namespace extensions {
class Dispatcher;
class ShellExtensionsRendererClient : public ExtensionsRendererClient {
public:
ShellExtensionsRendererClient();
~ShellExtensionsRendererClient() override;
// ExtensionsRendererClient implementation.
bool IsIncognitoProcess() const override;
int GetLowestIsolatedWorldId() const override;
Dispatcher* GetDispatcher() override;
bool ExtensionAPIEnabledForServiceWorkerScript(
const GURL& scope,
const GURL& script_url) const override;
private:
std::unique_ptr<Dispatcher> dispatcher_;
DISALLOW_COPY_AND_ASSIGN(ShellExtensionsRendererClient);
};
} // namespace extensions
#endif // EXTENSIONS_SHELL_RENDERER_SHELL_EXTENSIONS_RENDERER_CLIENT_H_