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

Unified Diff: chrome/browser/extensions/extension_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: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_content_settings_api.h
diff --git a/chrome/browser/extensions/extension_content_settings_api.h b/chrome/browser/extensions/extension_content_settings_api.h
deleted file mode 100644
index dbae333ad076fc858a9d3f5e60658c5c649b5745..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/extension_content_settings_api.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__
-#pragma once
-
-#include "chrome/browser/extensions/extension_function.h"
-
-namespace webkit {
-namespace npapi {
-class PluginGroup;
-}
-}
-
-class ClearContentSettingsFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.clear")
-
- protected:
- virtual ~ClearContentSettingsFunction() {}
-
- // ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
-};
-
-class GetContentSettingFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.get")
-
- protected:
- virtual ~GetContentSettingFunction() {}
-
- // ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
-};
-
-class SetContentSettingFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.set")
-
- protected:
- virtual ~SetContentSettingFunction() {}
-
- // ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
-};
-
-class GetResourceIdentifiersFunction : public AsyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.getResourceIdentifiers")
-
- protected:
- virtual ~GetResourceIdentifiersFunction() {}
-
- // ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
-
- private:
- FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest,
- ContentSettingsGetResourceIdentifiers);
-
- void OnGotPluginGroups(const std::vector<webkit::npapi::PluginGroup>& groups);
-
- // Used to override the global plugin list in tests.
- static void SetPluginGroupsForTesting(
- const std::vector<webkit::npapi::PluginGroup>* plugin_groups);
-};
-
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__

Powered by Google App Engine
This is Rietveld 408576698