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

Side by Side Diff: chrome/browser/extensions/api/permissions/permissions_api.h

Issue 10675007: Move each permission classes to its own files in extensions/permissions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase again Created 8 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/extensions/extension_function.h" 12 #include "chrome/browser/extensions/extension_function.h"
13 #include "chrome/browser/extensions/extension_install_prompt.h" 13 #include "chrome/browser/extensions/extension_install_prompt.h"
14 #include "chrome/common/extensions/extension_permission_set.h" 14 #include "chrome/common/extensions/permissions/permission_set.h"
15 15
16 class ExtensionPermissionSet;
17 class ExtensionService; 16 class ExtensionService;
18 17
19 // chrome.permissions.contains 18 // chrome.permissions.contains
20 class ContainsPermissionsFunction : public SyncExtensionFunction { 19 class ContainsPermissionsFunction : public SyncExtensionFunction {
21 public: 20 public:
22 DECLARE_EXTENSION_FUNCTION_NAME("permissions.contains") 21 DECLARE_EXTENSION_FUNCTION_NAME("permissions.contains")
23 22
24 protected: 23 protected:
25 virtual ~ContainsPermissionsFunction() {} 24 virtual ~ContainsPermissionsFunction() {}
26 25
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; 68 virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
70 69
71 protected: 70 protected:
72 virtual ~RequestPermissionsFunction(); 71 virtual ~RequestPermissionsFunction();
73 72
74 // ExtensionFunction: 73 // ExtensionFunction:
75 virtual bool RunImpl() OVERRIDE; 74 virtual bool RunImpl() OVERRIDE;
76 75
77 private: 76 private:
78 scoped_ptr<ExtensionInstallPrompt> install_ui_; 77 scoped_ptr<ExtensionInstallPrompt> install_ui_;
79 scoped_refptr<ExtensionPermissionSet> requested_permissions_; 78 scoped_refptr<extensions::PermissionSet> requested_permissions_;
80 }; 79 };
81 80
82 #endif // CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_H_ 81 #endif // CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698