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/renderer/extensions/messaging_bindings.h" | 5 #include "chrome/renderer/extensions/messaging_bindings.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/common/extensions/manifest_handlers/externally_connectable.h" | 16 #include "chrome/common/extensions/manifest_handlers/externally_connectable.h" |
17 #include "chrome/common/extensions/message_bundle.h" | |
18 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
19 #include "chrome/renderer/extensions/chrome_v8_context.h" | 18 #include "chrome/renderer/extensions/chrome_v8_context.h" |
20 #include "chrome/renderer/extensions/chrome_v8_context_set.h" | 19 #include "chrome/renderer/extensions/chrome_v8_context_set.h" |
21 #include "chrome/renderer/extensions/chrome_v8_extension.h" | 20 #include "chrome/renderer/extensions/chrome_v8_extension.h" |
22 #include "chrome/renderer/extensions/dispatcher.h" | 21 #include "chrome/renderer/extensions/dispatcher.h" |
23 #include "chrome/renderer/extensions/event_bindings.h" | 22 #include "chrome/renderer/extensions/event_bindings.h" |
24 #include "content/public/renderer/render_thread.h" | 23 #include "content/public/renderer/render_thread.h" |
25 #include "content/public/renderer/render_view.h" | 24 #include "content/public/renderer/render_view.h" |
26 #include "content/public/renderer/v8_value_converter.h" | 25 #include "content/public/renderer/v8_value_converter.h" |
27 #include "extensions/common/api/messaging/message.h" | 26 #include "extensions/common/api/messaging/message.h" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 } else { | 426 } else { |
428 arguments.push_back(v8::Null(isolate)); | 427 arguments.push_back(v8::Null(isolate)); |
429 } | 428 } |
430 (*it)->module_system()->CallModuleMethod("messaging", | 429 (*it)->module_system()->CallModuleMethod("messaging", |
431 "dispatchOnDisconnect", | 430 "dispatchOnDisconnect", |
432 &arguments); | 431 &arguments); |
433 } | 432 } |
434 } | 433 } |
435 | 434 |
436 } // namespace extensions | 435 } // namespace extensions |
OLD | NEW |