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/api/declarative/test_rules_registry.h

Issue 9422003: Migrate Declarative API bindings to new JSON objects generated by JSON compiler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed function naming Created 8 years, 10 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/api/declarative/test_rules_registry.h
diff --git a/chrome/browser/extensions/api/declarative/test_rules_registry.h b/chrome/browser/extensions/api/declarative/test_rules_registry.h
index 4100587bc85cc0990a03a591a182f9b2c7824cd5..f9bac3fe085e2e1579e61bb0dee221b55c147bf9 100644
--- a/chrome/browser/extensions/api/declarative/test_rules_registry.h
+++ b/chrome/browser/extensions/api/declarative/test_rules_registry.h
@@ -29,7 +29,7 @@ class TestRulesRegistry : public RulesRegistry {
// RulesRegistry implementation:
virtual std::string AddRules(
const std::string& extension_id,
- const std::vector<base::DictionaryValue*>& rules) OVERRIDE;
+ const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) OVERRIDE;
virtual std::string RemoveRules(
const std::string& extension_id,
const std::vector<std::string>& rule_identifiers) OVERRIDE;
@@ -38,16 +38,17 @@ class TestRulesRegistry : public RulesRegistry {
virtual std::string GetRules(
const std::string& extension_id,
const std::vector<std::string>& rule_identifiers,
- std::vector<base::DictionaryValue*>* out) OVERRIDE;
+ std::vector<linked_ptr<RulesRegistry::Rule> >* out) OVERRIDE;
virtual std::string GetAllRules(
const std::string& extension_id,
- std::vector<base::DictionaryValue*>* out) OVERRIDE;
+ std::vector<linked_ptr<RulesRegistry::Rule> >* out) OVERRIDE;
virtual void OnExtensionUnloaded(const std::string& extension_id) OVERRIDE;
+ virtual content::BrowserThread::ID GetOwnerThread() OVERRIDE;
private:
// Map of rule identifier to actual rule.
// TODO(battre): consider the extension_ids as part of the key.
- typedef std::map<std::string, linked_ptr<base::DictionaryValue> >
+ typedef std::map<std::string, linked_ptr<RulesRegistry::Rule> >
RulesDictionary;
RulesDictionary rules_;
};

Powered by Google App Engine
This is Rietveld 408576698