OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/extensions/event_matcher.h" | 5 #include "extensions/common/event_matcher.h" |
6 #include "chrome/common/extensions/event_filtering_info.h" | 6 |
| 7 #include "extensions/common/event_filtering_info.h" |
7 | 8 |
8 namespace { | 9 namespace { |
9 const char kUrlFiltersKey[] = "url"; | 10 const char kUrlFiltersKey[] = "url"; |
10 } | 11 } |
11 | 12 |
12 namespace extensions { | 13 namespace extensions { |
13 | 14 |
14 EventMatcher::EventMatcher(scoped_ptr<base::DictionaryValue> filter) | 15 EventMatcher::EventMatcher(scoped_ptr<base::DictionaryValue> filter) |
15 : filter_(filter.Pass()) { | 16 : filter_(filter.Pass()) { |
16 } | 17 } |
(...skipping 20 matching lines...) Expand all Loading... |
37 return url_filters->GetDictionary(i, url_filter_out); | 38 return url_filters->GetDictionary(i, url_filter_out); |
38 } | 39 } |
39 return false; | 40 return false; |
40 } | 41 } |
41 | 42 |
42 int EventMatcher::HasURLFilters() const { | 43 int EventMatcher::HasURLFilters() const { |
43 return GetURLFilterCount() != 0; | 44 return GetURLFilterCount() != 0; |
44 } | 45 } |
45 | 46 |
46 } // namespace extensions | 47 } // namespace extensions |
OLD | NEW |