Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: chrome/renderer/extensions/renderer_permissions_policy_delegate.h

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_
6 #define CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_ 6 #define CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_
7 7
8 #include "base/macros.h"
8 #include "extensions/common/permissions/permissions_data.h" 9 #include "extensions/common/permissions/permissions_data.h"
9 10
10 namespace extensions { 11 namespace extensions {
11 12
12 class Dispatcher; 13 class Dispatcher;
13 14
14 // Policy delegate for the renderer process. 15 // Policy delegate for the renderer process.
15 class RendererPermissionsPolicyDelegate 16 class RendererPermissionsPolicyDelegate
16 : public PermissionsData::PolicyDelegate { 17 : public PermissionsData::PolicyDelegate {
17 public: 18 public:
18 explicit RendererPermissionsPolicyDelegate(Dispatcher* dispatcher); 19 explicit RendererPermissionsPolicyDelegate(Dispatcher* dispatcher);
19 ~RendererPermissionsPolicyDelegate() override; 20 ~RendererPermissionsPolicyDelegate() override;
20 21
21 bool CanExecuteScriptOnPage(const Extension* extension, 22 bool CanExecuteScriptOnPage(const Extension* extension,
22 const GURL& document_url, 23 const GURL& document_url,
23 int tab_id, 24 int tab_id,
24 int process_id, 25 int process_id,
25 std::string* error) override; 26 std::string* error) override;
26 27
27 private: 28 private:
28 Dispatcher* dispatcher_; 29 Dispatcher* dispatcher_;
29 30
30 DISALLOW_COPY_AND_ASSIGN(RendererPermissionsPolicyDelegate); 31 DISALLOW_COPY_AND_ASSIGN(RendererPermissionsPolicyDelegate);
31 }; 32 };
32 33
33 } // namespace extensions 34 } // namespace extensions
34 35
35 #endif // CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_ 36 #endif // CHROME_RENDERER_EXTENSIONS_RENDERER_PERMISSIONS_POLICY_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/platform_keys_natives.h ('k') | chrome/renderer/extensions/sync_file_system_custom_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698