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

Side by Side Diff: chrome/browser/extensions/extension_content_settings_api.h

Issue 10071035: RefCounted types should not have public destructors, chrome/browser/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fix Created 8 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXTENSION_CONTENT_SETTINGS_API_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
11 namespace webkit { 11 namespace webkit {
12 namespace npapi { 12 namespace npapi {
13 class PluginGroup; 13 class PluginGroup;
14 } 14 }
15 } 15 }
16 16
17 class ClearContentSettingsFunction : public SyncExtensionFunction { 17 class ClearContentSettingsFunction : public SyncExtensionFunction {
18 public: 18 public:
19 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.clear")
20
21 protected:
22 virtual ~ClearContentSettingsFunction() {}
23
24 // ExtensionFunction:
19 virtual bool RunImpl() OVERRIDE; 25 virtual bool RunImpl() OVERRIDE;
20 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.clear")
21 }; 26 };
22 27
23 class GetContentSettingFunction : public SyncExtensionFunction { 28 class GetContentSettingFunction : public SyncExtensionFunction {
24 public: 29 public:
30 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.get")
31
32 protected:
33 virtual ~GetContentSettingFunction() {}
34
35 // ExtensionFunction:
25 virtual bool RunImpl() OVERRIDE; 36 virtual bool RunImpl() OVERRIDE;
26 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.get")
27 }; 37 };
28 38
29 class SetContentSettingFunction : public SyncExtensionFunction { 39 class SetContentSettingFunction : public SyncExtensionFunction {
30 public: 40 public:
41 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.set")
42
43 protected:
44 virtual ~SetContentSettingFunction() {}
45
46 // ExtensionFunction:
31 virtual bool RunImpl() OVERRIDE; 47 virtual bool RunImpl() OVERRIDE;
32 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.set")
33 }; 48 };
34 49
35 class GetResourceIdentifiersFunction : public AsyncExtensionFunction { 50 class GetResourceIdentifiersFunction : public AsyncExtensionFunction {
36 public: 51 public:
52 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.getResourceIdentifiers")
53
54 protected:
55 virtual ~GetResourceIdentifiersFunction() {}
56
57 // ExtensionFunction:
37 virtual bool RunImpl() OVERRIDE; 58 virtual bool RunImpl() OVERRIDE;
38 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.getResourceIdentifiers")
39 59
40 private: 60 private:
41 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, 61 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest,
42 ContentSettingsGetResourceIdentifiers); 62 ContentSettingsGetResourceIdentifiers);
43 63
44 void OnGotPluginGroups(const std::vector<webkit::npapi::PluginGroup>& groups); 64 void OnGotPluginGroups(const std::vector<webkit::npapi::PluginGroup>& groups);
45 65
46 // Used to override the global plugin list in tests. 66 // Used to override the global plugin list in tests.
47 static void SetPluginGroupsForTesting( 67 static void SetPluginGroupsForTesting(
48 const std::vector<webkit::npapi::PluginGroup>* plugin_groups); 68 const std::vector<webkit::npapi::PluginGroup>* plugin_groups);
49 }; 69 };
50 70
51 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ 71 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_chrome_auth_private_api.h ('k') | chrome/browser/extensions/extension_context_menu_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698