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

Unified Diff: extensions/browser/content_verifier_filter.h

Issue 266963003: Beginning of support for extension content verification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops, forgot to upload minor cosmetic changes to test Created 6 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: extensions/browser/content_verifier_filter.h
diff --git a/extensions/browser/content_verifier_filter.h b/extensions/browser/content_verifier_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..6327d1fb80b19e9317bbc8a906328e65cd4bd3e4
--- /dev/null
+++ b/extensions/browser/content_verifier_filter.h
@@ -0,0 +1,23 @@
+// Copyright 2014 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 EXTENSIONS_BROWSER_CONTENT_VERIFIER_FILTER_H_
+#define EXTENSIONS_BROWSER_CONTENT_VERIFIER_FILTER_H_
+
+#include "base/bind.h"
+#include "base/callback.h"
+
+namespace extensions {
+
+class Extension;
+
+// A callback function for deciding if a given extension should have it's
+// content verified or not. Returning true means "yes, it should be verified".
+//
+// This function should be prepared to be called on any thread.
+typedef base::Callback<bool(const Extension*)> ContentVerifierFilter;
+
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_CONTENT_VERIFIER_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698