OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "extensions/browser/event_listener_map.h" | 5 #include "extensions/browser/event_listener_map.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/values.h" | 11 #include "base/values.h" |
10 #include "content/public/browser/render_process_host.h" | 12 #include "content/public/browser/render_process_host.h" |
11 #include "extensions/browser/event_router.h" | 13 #include "extensions/browser/event_router.h" |
12 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
13 #include "url/gurl.h" | 15 #include "url/gurl.h" |
14 | 16 |
15 using base::DictionaryValue; | 17 using base::DictionaryValue; |
16 | 18 |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 return; | 276 return; |
275 event_filter_.RemoveEventMatcher(listener->matcher_id()); | 277 event_filter_.RemoveEventMatcher(listener->matcher_id()); |
276 CHECK_EQ(1u, listeners_by_matcher_id_.erase(listener->matcher_id())); | 278 CHECK_EQ(1u, listeners_by_matcher_id_.erase(listener->matcher_id())); |
277 } | 279 } |
278 | 280 |
279 bool EventListenerMap::IsFilteredEvent(const Event& event) const { | 281 bool EventListenerMap::IsFilteredEvent(const Event& event) const { |
280 return filtered_events_.count(event.event_name) > 0u; | 282 return filtered_events_.count(event.event_name) > 0u; |
281 } | 283 } |
282 | 284 |
283 } // namespace extensions | 285 } // namespace extensions |
OLD | NEW |