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/browser/extensions/api/messaging/message_service.h" | 5 #include "chrome/browser/extensions/api/messaging/message_service.h" |
6 | 6 |
7 #include "base/atomic_sequence_num.h" | 7 #include "base/atomic_sequence_num.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "content/public/browser/render_widget_host.h" | 28 #include "content/public/browser/render_widget_host.h" |
29 #include "content/public/browser/render_widget_host_view.h" | 29 #include "content/public/browser/render_widget_host_view.h" |
30 #include "content/public/browser/site_instance.h" | 30 #include "content/public/browser/site_instance.h" |
31 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
32 #include "extensions/browser/extension_host.h" | 32 #include "extensions/browser/extension_host.h" |
33 #include "extensions/browser/extension_system.h" | 33 #include "extensions/browser/extension_system.h" |
34 #include "extensions/browser/extensions_browser_client.h" | 34 #include "extensions/browser/extensions_browser_client.h" |
35 #include "extensions/browser/lazy_background_task_queue.h" | 35 #include "extensions/browser/lazy_background_task_queue.h" |
36 #include "extensions/browser/process_manager.h" | 36 #include "extensions/browser/process_manager.h" |
37 #include "extensions/common/extension.h" | 37 #include "extensions/common/extension.h" |
38 #include "extensions/common/extension_messages.h" | |
39 #include "extensions/common/manifest_constants.h" | 38 #include "extensions/common/manifest_constants.h" |
40 #include "extensions/common/manifest_handlers/background_info.h" | 39 #include "extensions/common/manifest_handlers/background_info.h" |
41 #include "extensions/common/manifest_handlers/externally_connectable.h" | 40 #include "extensions/common/manifest_handlers/externally_connectable.h" |
42 #include "extensions/common/manifest_handlers/incognito_info.h" | 41 #include "extensions/common/manifest_handlers/incognito_info.h" |
43 #include "extensions/common/permissions/permissions_data.h" | 42 #include "extensions/common/permissions/permissions_data.h" |
44 #include "net/base/completion_callback.h" | 43 #include "net/base/completion_callback.h" |
45 #include "url/gurl.h" | 44 #include "url/gurl.h" |
46 | 45 |
47 using content::BrowserContext; | 46 using content::BrowserContext; |
48 using content::SiteInstance; | 47 using content::SiteInstance; |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 } | 755 } |
757 | 756 |
758 void MessageService::DispatchOnDisconnect(content::RenderProcessHost* source, | 757 void MessageService::DispatchOnDisconnect(content::RenderProcessHost* source, |
759 int port_id, | 758 int port_id, |
760 const std::string& error_message) { | 759 const std::string& error_message) { |
761 ExtensionMessagePort port(source, MSG_ROUTING_CONTROL, ""); | 760 ExtensionMessagePort port(source, MSG_ROUTING_CONTROL, ""); |
762 port.DispatchOnDisconnect(GET_OPPOSITE_PORT_ID(port_id), error_message); | 761 port.DispatchOnDisconnect(GET_OPPOSITE_PORT_ID(port_id), error_message); |
763 } | 762 } |
764 | 763 |
765 } // namespace extensions | 764 } // namespace extensions |
OLD | NEW |