Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: chrome/browser/extensions/api/messaging/message_service.cc

Issue 559523004: Cleanup: Remove unneeded extension_messages.h usage and ifdef out some extensions code usage when e… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/apps/app_url_redirector.cc ('k') | chrome/browser/sessions/session_tab_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_url_redirector.cc ('k') | chrome/browser/sessions/session_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698