Revert 285173 "Removed InProcessBrowserTest::CleanUpOnMainThread()"
[chromium-blink-merge.git] / chrome / browser / extensions / browser_permissions_policy_delegate.h
blobbdb1f810fe1f293db4e5f73e11c123def2a27084
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_BROWSER_EXTENSIONS_BROWSER_PERMISSIONS_POLICY_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_BROWSER_PERMISSIONS_POLICY_DELEGATE_H_
8 #include "extensions/common/permissions/permissions_data.h"
10 namespace extensions {
12 // Policy delegate for the browser process.
13 class BrowserPermissionsPolicyDelegate
14 : public PermissionsData::PolicyDelegate {
15 public:
16 BrowserPermissionsPolicyDelegate();
17 virtual ~BrowserPermissionsPolicyDelegate();
19 virtual bool CanExecuteScriptOnPage(const Extension* extension,
20 const GURL& document_url,
21 const GURL& top_document_url,
22 int tab_id,
23 int process_id,
24 std::string* error) OVERRIDE;
26 DISALLOW_COPY_AND_ASSIGN(BrowserPermissionsPolicyDelegate);
29 } // namespace extensions
31 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_PERMISSIONS_POLICY_DELEGATE_H_