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

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

Issue 287623005: Cleanup: Remove some unneeded Extension* class forward declarations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: pass presubmit Created 6 years, 7 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 | Annotate | Revision Log
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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/extensions/chrome_extension_function.h" 11 #include "chrome/browser/extensions/chrome_extension_function.h"
12 #include "chrome/browser/extensions/extension_install_prompt.h" 12 #include "chrome/browser/extensions/extension_install_prompt.h"
13 #include "extensions/common/permissions/permission_set.h" 13 #include "extensions/common/permissions/permission_set.h"
14 14
15 class ExtensionService;
16
17 namespace extensions { 15 namespace extensions {
18 16
19 // chrome.permissions.contains 17 // chrome.permissions.contains
20 class PermissionsContainsFunction : public ChromeSyncExtensionFunction { 18 class PermissionsContainsFunction : public ChromeSyncExtensionFunction {
21 public: 19 public:
22 DECLARE_EXTENSION_FUNCTION("permissions.contains", PERMISSIONS_CONTAINS) 20 DECLARE_EXTENSION_FUNCTION("permissions.contains", PERMISSIONS_CONTAINS)
23 21
24 protected: 22 protected:
25 virtual ~PermissionsContainsFunction() {} 23 virtual ~PermissionsContainsFunction() {}
26 24
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual bool RunAsync() OVERRIDE; 73 virtual bool RunAsync() OVERRIDE;
76 74
77 private: 75 private:
78 scoped_ptr<ExtensionInstallPrompt> install_ui_; 76 scoped_ptr<ExtensionInstallPrompt> install_ui_;
79 scoped_refptr<extensions::PermissionSet> requested_permissions_; 77 scoped_refptr<extensions::PermissionSet> requested_permissions_;
80 }; 78 };
81 79
82 } // namespace extensions 80 } // namespace extensions
83 81
84 #endif // CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_H_ 82 #endif // CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698