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 <string> |
| 6 |
5 #include "extensions/common/event_filter.h" | 7 #include "extensions/common/event_filter.h" |
6 | 8 |
7 #include "components/url_matcher/url_matcher_factory.h" | 9 #include "components/url_matcher/url_matcher_factory.h" |
8 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
9 | 11 |
10 using url_matcher::URLMatcher; | 12 using url_matcher::URLMatcher; |
11 using url_matcher::URLMatcherConditionSet; | 13 using url_matcher::URLMatcherConditionSet; |
12 using url_matcher::URLMatcherFactory; | 14 using url_matcher::URLMatcherFactory; |
13 | 15 |
14 namespace extensions { | 16 namespace extensions { |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 178 |
177 int EventFilter::GetMatcherCountForEvent(const std::string& name) { | 179 int EventFilter::GetMatcherCountForEvent(const std::string& name) { |
178 EventMatcherMultiMap::const_iterator it = event_matchers_.find(name); | 180 EventMatcherMultiMap::const_iterator it = event_matchers_.find(name); |
179 if (it == event_matchers_.end()) | 181 if (it == event_matchers_.end()) |
180 return 0; | 182 return 0; |
181 | 183 |
182 return it->second.size(); | 184 return it->second.size(); |
183 } | 185 } |
184 | 186 |
185 } // namespace extensions | 187 } // namespace extensions |
OLD | NEW |