Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / renderer / extensions / renderer_permissions_policy_delegate.h
blob252b0671d3bee3ecaf4999f0fd5bce5938a696bd
1 // Copyright 2013 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_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_
6 #define CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_
8 #include "extensions/common/permissions/permissions_data.h"
10 namespace extensions {
12 class Dispatcher;
14 // Policy delegate for the renderer process.
15 class RendererPermissionsPolicyDelegate
16 : public PermissionsData::PolicyDelegate {
17 public:
18 explicit RendererPermissionsPolicyDelegate(Dispatcher* dispatcher);
19 ~RendererPermissionsPolicyDelegate() override;
21 bool CanExecuteScriptOnPage(const Extension* extension,
22 const GURL& document_url,
23 int tab_id,
24 int process_id,
25 std::string* error) override;
27 private:
28 Dispatcher* dispatcher_;
30 DISALLOW_COPY_AND_ASSIGN(RendererPermissionsPolicyDelegate);
33 } // namespace extensions
35 #endif // CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_