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

Unified Diff: chrome/common/extensions/requirements_provider.h

Issue 10689097: Enforce the 'requirements' field in manifests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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/common/extensions/requirements_provider.h
diff --git a/chrome/common/extensions/requirements_provider.h b/chrome/common/extensions/requirements_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..52875dc6034b424b68fc87b9a4cdfa208e57c4d7
--- /dev/null
+++ b/chrome/common/extensions/requirements_provider.h
@@ -0,0 +1,25 @@
+// 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_COMMON_EXTENSIONS_REQUIREMENTS_PROVIDER_H_
+#define CHROME_COMMON_EXTENSIONS_REQUIREMENTS_PROVIDER_H_
+#pragma once
+
+#include "base/string16.h"
+
+namespace extensions {
+class Manifest;
+
+class RequirementsProvider {
Aaron Boodman 2012/07/16 21:16:12 I don't think this needs to be abstract for now. T
+ public:
+ static RequirementsProvider* Create();
+
+ virtual ~RequirementsProvider() {}
+
+ virtual bool Supports(const Manifest& manifest, string16* error) = 0;
+};
+
+} // namespace extensions
+
+#endif // CHROME_COMMON_EXTENSIONS_REQUIREMENTS_PROVIDER_H_
« chrome/common/extensions/extension.cc ('K') | « chrome/common/extensions/extension.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698