HomeSort by relevance Sort by last modified time
    Searched refs:RulesRegistry (Results 1 - 19 of 19) sorted by null

  /external/chromium_org/chrome/browser/extensions/api/declarative/
rules_registry_unittest.cc 25 const RulesRegistry::WebViewKey key(0, 0);
27 scoped_refptr<RulesRegistry> registry =
32 std::vector<linked_ptr<RulesRegistry::Rule> > add_rules;
33 add_rules.push_back(make_linked_ptr(new RulesRegistry::Rule));
34 add_rules.push_back(make_linked_ptr(new RulesRegistry::Rule));
38 std::vector<linked_ptr<RulesRegistry::Rule> > get_rules;
56 std::vector<linked_ptr<RulesRegistry::Rule> > add_rules_2;
57 add_rules_2.push_back(make_linked_ptr(new RulesRegistry::Rule));
62 std::vector<linked_ptr<RulesRegistry::Rule> > get_rules_2;
78 std::vector<linked_ptr<RulesRegistry::Rule> > get_rules_3a
    [all...]
rules_registry.cc 36 const std::vector<linked_ptr<extensions::RulesRegistry::Rule> >& rules) {
43 std::vector<linked_ptr<extensions::RulesRegistry::Rule> > RulesFromValue(
45 std::vector<linked_ptr<extensions::RulesRegistry::Rule> > rules;
56 linked_ptr<extensions::RulesRegistry::Rule> rule(
57 new extensions::RulesRegistry::Rule());
58 if (extensions::RulesRegistry::Rule::Populate(*dict, rule.get()))
74 // RulesRegistry
76 RulesRegistry::RulesRegistry(
95 base::Bind(&RulesRegistry::MarkReady, this, base::Time::Now()))
    [all...]
rules_registry_service.h 30 class RulesRegistry;
41 typedef RulesRegistry::WebViewKey WebViewKey;
72 // Registers a RulesRegistry and wraps it in an InitializingRulesRegistry.
73 void RegisterRulesRegistry(scoped_refptr<RulesRegistry> rule_registry);
75 // Returns the RulesRegistry for |event_name| and |webview_key| or NULL if no
78 scoped_refptr<RulesRegistry> GetRulesRegistry(
99 typedef std::map<RulesRegistryKey, scoped_refptr<RulesRegistry> >
112 void (RulesRegistry::*notification_callback)(const std::string&),
rules_registry.h 37 // RulesRegistry::Rule objects. It contains all the methods that need to run on
40 class RulesRegistry : public base::RefCountedThreadSafe<RulesRegistry> {
62 RulesRegistry(Profile* profile,
72 // RulesRegistry implementation:
74 // Registers |rules|, owned by |extension_id| to this RulesRegistry.
91 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules);
94 // |extension_id| from this RulesRegistry.
96 // RulesRegistry and are ignored.
117 std::vector<linked_ptr<RulesRegistry::Rule> >* out)
    [all...]
test_rules_registry.h 12 // This is a trivial test RulesRegistry that can only store and retrieve rules.
13 class TestRulesRegistry : public RulesRegistry {
25 // RulesRegistry implementation:
28 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) OVERRIDE;
44 // RulesRegistry. Defaults to "".
declarative_api.h 27 // on the thread on which the respective RulesRegistry lives.
31 scoped_refptr<RulesRegistry> rules_registry_;
rules_cache_delegate.h 19 class RulesRegistry;
21 // RulesCacheDelegate implements the part of the RulesRegistry which works on
39 void Init(RulesRegistry* registry);
58 // the RulesRegistry on its thread if so. The notification is delivered
96 base::WeakPtr<RulesRegistry> registry_;
101 // We notified the RulesRegistry that the rules are loaded.
test_rules_registry.cc 14 : RulesRegistry(NULL /*profile*/,
26 : RulesRegistry(profile,
34 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) {
rules_registry_service_unittest.cc 18 void InsertRule(scoped_refptr<extensions::RulesRegistry> registry,
20 std::vector<linked_ptr<extensions::RulesRegistry::Rule> > add_rules;
21 add_rules.push_back(make_linked_ptr(new extensions::RulesRegistry::Rule));
27 void VerifyNumberOfRules(scoped_refptr<extensions::RulesRegistry> registry,
29 std::vector<linked_ptr<extensions::RulesRegistry::Rule> > get_rules;
58 const RulesRegistry::WebViewKey key(0, 0);
123 const RulesRegistry::WebViewKey key1(kEmbedderProcessID1, kWebViewInstanceID);
124 const RulesRegistry::WebViewKey key2(kEmbedderProcessID2, kWebViewInstanceID);
153 const RulesRegistry::WebViewKey key(kEmbedderProcessID, kWebViewInstanceID);
156 RulesRegistry* registry
    [all...]
rules_registry_service.cc 137 scoped_refptr<RulesRegistry> rule_registry) {
144 scoped_refptr<RulesRegistry> RulesRegistryService::GetRulesRegistry(
152 return scoped_refptr<RulesRegistry>();
185 NotifyRegistriesHelper(&RulesRegistry::OnExtensionUninstalled, extension_id);
189 void (RulesRegistry::*notification_callback)(const std::string&),
193 scoped_refptr<RulesRegistry> registry = i->second;
213 NotifyRegistriesHelper(&RulesRegistry::OnExtensionUnloaded,
220 NotifyRegistriesHelper(&RulesRegistry::OnExtensionUninstalled,
227 NotifyRegistriesHelper(&RulesRegistry::OnExtensionLoaded,
rules_registry_with_cache_unittest.cc 44 RulesRegistry::WebViewKey(0, 0))) {}
71 std::vector<linked_ptr<RulesRegistry::Rule> > add_rules;
72 add_rules.push_back(make_linked_ptr(new RulesRegistry::Rule));
91 std::vector<linked_ptr<RulesRegistry::Rule> > get_rules;
111 // Check that nothing happens if the concrete RulesRegistry refuses to insert
187 std::vector<linked_ptr<RulesRegistry::Rule> > gotten_rules;
201 std::vector<linked_ptr<RulesRegistry::Rule> > gotten_rules;
233 scoped_refptr<RulesRegistry> registry(new TestRulesRegistry(
236 RulesRegistry::WebViewKey(0, 0)));
306 scoped_refptr<RulesRegistry> registry1(new TestRulesRegistry
    [all...]
declarative_apitest.cc 30 using extensions::RulesRegistry;
117 scoped_refptr<RulesRegistry> rules_registry =
119 RulesRegistry::WebViewKey(0, 0),
121 std::vector<linked_ptr<RulesRegistry::Rule> > rules;
126 &RulesRegistry::GetAllRules, rules_registry, extension_id, &rules));
rules_cache_delegate.cc 57 // This is called from the constructor of RulesRegistry, so it is
62 void RulesCacheDelegate::Init(RulesRegistry* registry) {
122 &RulesRegistry::MarkReady, registry_, storage_init_time_));
184 base::Bind(&RulesRegistry::DeserializeAndAddRules,
  /external/chromium_org/chrome/browser/extensions/api/declarative_content/
content_rules_registry_unittest.cc 52 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule);
53 RulesRegistry::Rule::Populate(
68 std::vector<linked_ptr<RulesRegistry::Rule> > rules;
content_rules_registry.h 55 // RulesRegistry::Rule consists of Conditions and Actions, these are
62 class ContentRulesRegistry : public RulesRegistry,
79 // Implementation of RulesRegistry:
82 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) OVERRIDE;
content_rules_registry.cc 28 : RulesRegistry(profile,
140 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) {
152 for (std::vector<linked_ptr<RulesRegistry::Rule> >::const_iterator rule =
  /external/chromium_org/chrome/browser/extensions/api/declarative_webrequest/
webrequest_rules_registry_unittest.cc 99 linked_ptr<RulesRegistry::Rule> CreateRule1() {
124 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule);
136 linked_ptr<RulesRegistry::Rule> CreateRule2() {
143 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule);
152 linked_ptr<RulesRegistry::Rule> CreateRedirectRule(
161 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule);
172 linked_ptr<RulesRegistry::Rule> CreateIgnoreRule()
    [all...]
webrequest_rules_registry.h 51 // RulesRegistry::Rule consists of Conditions and Actions, these are
74 class WebRequestRulesRegistry : public RulesRegistry {
94 // Implementation of RulesRegistry:
97 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) OVERRIDE;
webrequest_rules_registry.cc 43 : RulesRegistry(profile,
162 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) {
177 for (std::vector<linked_ptr<RulesRegistry::Rule> >::const_iterator rule =

Completed in 594 milliseconds