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

Side by Side Diff: chrome/browser/extensions/api/content_settings/content_settings_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_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H_
7 7
8 #include "chrome/browser/extensions/chrome_extension_function.h" 8 #include "chrome/browser/extensions/chrome_extension_function.h"
9 9
10 class PluginFinder; 10 class PluginFinder;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class ContentSettingsContentSettingGetResourceIdentifiersFunction 54 class ContentSettingsContentSettingGetResourceIdentifiersFunction
55 : public ChromeAsyncExtensionFunction { 55 : public ChromeAsyncExtensionFunction {
56 public: 56 public:
57 DECLARE_EXTENSION_FUNCTION("contentSettings.getResourceIdentifiers", 57 DECLARE_EXTENSION_FUNCTION("contentSettings.getResourceIdentifiers",
58 CONTENTSETTINGS_GETRESOURCEIDENTIFIERS) 58 CONTENTSETTINGS_GETRESOURCEIDENTIFIERS)
59 59
60 protected: 60 protected:
61 virtual ~ContentSettingsContentSettingGetResourceIdentifiersFunction() {} 61 virtual ~ContentSettingsContentSettingGetResourceIdentifiersFunction() {}
62 62
63 // ExtensionFunction: 63 // ExtensionFunction:
64 virtual bool RunImpl() OVERRIDE; 64 virtual bool RunAsync() OVERRIDE;
65 65
66 private: 66 private:
67 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, 67 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest,
68 ContentSettingsGetResourceIdentifiers); 68 ContentSettingsGetResourceIdentifiers);
69 69
70 // Callback method that gets executed when |plugins| 70 // Callback method that gets executed when |plugins|
71 // are asynchronously fetched. 71 // are asynchronously fetched.
72 void OnGotPlugins(const std::vector<content::WebPluginInfo>& plugins); 72 void OnGotPlugins(const std::vector<content::WebPluginInfo>& plugins);
73 }; 73 };
74 74
75 } // namespace extensions 75 } // namespace extensions
76 76
77 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H _ 77 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698