OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/renderer/event_bindings.h" | 5 #include "extensions/renderer/event_bindings.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 #include <utility> | 10 #include <utility> |
9 | 11 |
10 #include "base/basictypes.h" | |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
12 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "components/crx_file/id_util.h" | 15 #include "components/crx_file/id_util.h" |
15 #include "content/public/child/v8_value_converter.h" | 16 #include "content/public/child/v8_value_converter.h" |
16 #include "content/public/renderer/render_frame.h" | 17 #include "content/public/renderer/render_frame.h" |
17 #include "content/public/renderer/render_thread.h" | 18 #include "content/public/renderer/render_thread.h" |
18 #include "content/public/renderer/render_view.h" | 19 #include "content/public/renderer/render_view.h" |
19 #include "extensions/common/event_filter.h" | 20 #include "extensions/common/event_filter.h" |
20 #include "extensions/common/extension.h" | 21 #include "extensions/common/extension.h" |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 // Same for filtered events. | 358 // Same for filtered events. |
358 std::set<int> attached_matcher_ids_safe = attached_matcher_ids_; | 359 std::set<int> attached_matcher_ids_safe = attached_matcher_ids_; |
359 for (int matcher_id : attached_matcher_ids_safe) { | 360 for (int matcher_id : attached_matcher_ids_safe) { |
360 DetachFilteredEvent(matcher_id, false /* is_manual */); | 361 DetachFilteredEvent(matcher_id, false /* is_manual */); |
361 } | 362 } |
362 DCHECK(attached_matcher_ids_.empty()) | 363 DCHECK(attached_matcher_ids_.empty()) |
363 << "Filtered events cannot be attached during invalidation"; | 364 << "Filtered events cannot be attached during invalidation"; |
364 } | 365 } |
365 | 366 |
366 } // namespace extensions | 367 } // namespace extensions |
OLD | NEW |