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

Side by Side Diff: chrome/browser/extensions/api/content_settings/content_settings_api.h

Issue 10381097: Move content settings extension API to content_settings dir. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved to c/b/e/api/content_settings Created 8 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
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_EXTENSION_CONTENT_SETTINGS_API_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H__
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ 6 #define CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_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 {
Aaron Boodman 2012/05/11 21:18:26 If you do more of these, can you put them in the '
chebert 2012/05/12 01:24:42 Done.
18 public: 18 public:
19 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.clear") 19 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.clear")
20 20
21 protected: 21 protected:
22 virtual ~ClearContentSettingsFunction() {} 22 virtual ~ClearContentSettingsFunction() {}
23 23
24 // ExtensionFunction: 24 // ExtensionFunction:
25 virtual bool RunImpl() OVERRIDE; 25 virtual bool RunImpl() OVERRIDE;
26 }; 26 };
27 27
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, 61 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest,
62 ContentSettingsGetResourceIdentifiers); 62 ContentSettingsGetResourceIdentifiers);
63 63
64 void OnGotPluginGroups(const std::vector<webkit::npapi::PluginGroup>& groups); 64 void OnGotPluginGroups(const std::vector<webkit::npapi::PluginGroup>& groups);
65 65
66 // Used to override the global plugin list in tests. 66 // Used to override the global plugin list in tests.
67 static void SetPluginGroupsForTesting( 67 static void SetPluginGroupsForTesting(
68 const std::vector<webkit::npapi::PluginGroup>* plugin_groups); 68 const std::vector<webkit::npapi::PluginGroup>* plugin_groups);
69 }; 69 };
70 70
71 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ 71 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H __
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698