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

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

Issue 257333002: Drive extension functions from ExtensionFunction::Run. The (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment 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"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 static void SetIgnoreUserGestureForTests(bool ignore); 65 static void SetIgnoreUserGestureForTests(bool ignore);
66 66
67 // ExtensionInstallPrompt::Delegate: 67 // ExtensionInstallPrompt::Delegate:
68 virtual void InstallUIProceed() OVERRIDE; 68 virtual void InstallUIProceed() OVERRIDE;
69 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; 69 virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
70 70
71 protected: 71 protected:
72 virtual ~PermissionsRequestFunction(); 72 virtual ~PermissionsRequestFunction();
73 73
74 // ExtensionFunction: 74 // ExtensionFunction:
75 virtual bool RunImpl() OVERRIDE; 75 virtual bool RunAsync() OVERRIDE;
76 76
77 private: 77 private:
78 scoped_ptr<ExtensionInstallPrompt> install_ui_; 78 scoped_ptr<ExtensionInstallPrompt> install_ui_;
79 scoped_refptr<extensions::PermissionSet> requested_permissions_; 79 scoped_refptr<extensions::PermissionSet> requested_permissions_;
80 }; 80 };
81 81
82 } // namespace extensions 82 } // namespace extensions
83 83
84 #endif // CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_H_ 84 #endif // CHROME_BROWSER_EXTENSIONS_API_PERMISSIONS_PERMISSIONS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698