| OLD | NEW |
| 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 | 13 class PluginGroup; |
| 14 class PluginList; | |
| 15 | |
| 16 } | 14 } |
| 17 } | 15 } |
| 18 | 16 |
| 19 class ClearContentSettingsFunction : public SyncExtensionFunction { | 17 class ClearContentSettingsFunction : public SyncExtensionFunction { |
| 20 public: | 18 public: |
| 21 virtual bool RunImpl(); | 19 virtual bool RunImpl(); |
| 22 DECLARE_EXTENSION_FUNCTION_NAME( | 20 DECLARE_EXTENSION_FUNCTION_NAME( |
| 23 "experimental.contentSettings.clear") | 21 "experimental.contentSettings.clear") |
| 24 }; | 22 }; |
| 25 | 23 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 40 class GetResourceIdentifiersFunction : public AsyncExtensionFunction { | 38 class GetResourceIdentifiersFunction : public AsyncExtensionFunction { |
| 41 public: | 39 public: |
| 42 virtual bool RunImpl(); | 40 virtual bool RunImpl(); |
| 43 DECLARE_EXTENSION_FUNCTION_NAME( | 41 DECLARE_EXTENSION_FUNCTION_NAME( |
| 44 "experimental.contentSettings.getResourceIdentifiers") | 42 "experimental.contentSettings.getResourceIdentifiers") |
| 45 | 43 |
| 46 private: | 44 private: |
| 47 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, | 45 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, |
| 48 ContentSettingsGetResourceIdentifiers); | 46 ContentSettingsGetResourceIdentifiers); |
| 49 | 47 |
| 50 void GetPluginsOnFileThread(); | 48 void OnGotPluginGroups(const std::vector<webkit::npapi::PluginGroup>& groups); |
| 51 | |
| 52 // Used to override the global plugin list in tests. | |
| 53 static void SetPluginListForTesting(webkit::npapi::PluginList* plugin_list); | |
| 54 }; | 49 }; |
| 55 | 50 |
| 56 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ | 51 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ |
| OLD | NEW |