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

Unified Diff: chrome/browser/extensions/test_blacklist.h

Issue 11415216: Make Blacklist::IsBlacklist asynchronous (it will need to be for safe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/test_blacklist.h
diff --git a/chrome/browser/extensions/test_blacklist.h b/chrome/browser/extensions/test_blacklist.h
new file mode 100644
index 0000000000000000000000000000000000000000..a9b5690e552f8392f45a2c467dcb3f563fc7bfa1
--- /dev/null
+++ b/chrome/browser/extensions/test_blacklist.h
@@ -0,0 +1,34 @@
+// Copyright 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_TEST_BLACKLIST_H_
+#define CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+
+namespace extensions {
+
+class Blacklist;
+
+// A wrapper for an extensions::Blacklist that provides functionality for
+// testing.
+class TestBlacklist {
+ public:
+ explicit TestBlacklist(Blacklist* blacklist);
+
+ Blacklist* blacklist() { return blacklist_; }
+
+ bool IsBlacklisted(const std::string& extension_id);
+
+ private:
+ Blacklist* blacklist_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestBlacklist);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_

Powered by Google App Engine
This is Rietveld 408576698