| // Copyright 2013 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_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_ |
| #define CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_ |
| |
| #include "base/macros.h" |
| #include "extensions/common/permissions/permissions_data.h" |
| |
| namespace extensions { |
| |
| class Dispatcher; |
| |
| // Policy delegate for the renderer process. |
| class RendererPermissionsPolicyDelegate |
| : public PermissionsData::PolicyDelegate { |
| public: |
| explicit RendererPermissionsPolicyDelegate(Dispatcher* dispatcher); |
| ~RendererPermissionsPolicyDelegate() override; |
| |
| // PermissionsData::PolicyDelegate: |
| bool IsRestrictedUrl(const GURL& document_url, std::string* error) override; |
| |
| private: |
| Dispatcher* dispatcher_; |
| |
| DISALLOW_COPY_AND_ASSIGN(RendererPermissionsPolicyDelegate); |
| }; |
| |
| } // namespace extensions |
| |
| #endif // CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_ |