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/messaging_bindings.h" | 5 #include "extensions/renderer/messaging_bindings.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/callback_helpers.h" | 15 #include "base/callback_helpers.h" |
16 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
| 17 #include "base/memory/ptr_util.h" |
17 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
18 #include "base/metrics/histogram_macros.h" | 19 #include "base/metrics/histogram_macros.h" |
19 #include "base/values.h" | 20 #include "base/values.h" |
20 #include "content/public/child/v8_value_converter.h" | 21 #include "content/public/child/v8_value_converter.h" |
21 #include "content/public/common/child_process_host.h" | 22 #include "content/public/common/child_process_host.h" |
22 #include "content/public/renderer/render_frame.h" | 23 #include "content/public/renderer/render_frame.h" |
23 #include "content/public/renderer/render_thread.h" | 24 #include "content/public/renderer/render_thread.h" |
24 #include "extensions/common/api/messaging/message.h" | 25 #include "extensions/common/api/messaging/message.h" |
25 #include "extensions/common/api/messaging/port_id.h" | 26 #include "extensions/common/api/messaging/port_id.h" |
26 #include "extensions/common/extension_messages.h" | 27 #include "extensions/common/extension_messages.h" |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 ports_.erase(iter); | 545 ports_.erase(iter); |
545 port->Close(force_close); | 546 port->Close(force_close); |
546 } | 547 } |
547 } | 548 } |
548 | 549 |
549 int MessagingBindings::GetNextJsId() { | 550 int MessagingBindings::GetNextJsId() { |
550 return next_js_id_++; | 551 return next_js_id_++; |
551 } | 552 } |
552 | 553 |
553 } // namespace extensions | 554 } // namespace extensions |
OLD | NEW |