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

Side by Side Diff: chrome/renderer/extensions/dispatcher.cc

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 6 years, 9 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 | Annotate | Revision Log
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/renderer/extensions/dispatcher.h" 5 #include "chrome/renderer/extensions/dispatcher.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/alias.h" 9 #include "base/debug/alias.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/metrics/user_metrics_action.h" 12 #include "base/metrics/user_metrics_action.h"
13 #include "base/sha1.h" 13 #include "base/sha1.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_piece.h" 15 #include "base/strings/string_piece.h"
16 #include "base/strings/string_split.h" 16 #include "base/strings/string_split.h"
17 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/chrome_version_info.h" 19 #include "chrome/common/chrome_version_info.h"
20 #include "chrome/common/crash_keys.h" 20 #include "chrome/common/crash_keys.h"
21 #include "chrome/common/extensions/api/messaging/message.h" 21 #include "chrome/common/extensions/api/messaging/message.h"
22 #include "chrome/common/extensions/extension_messages.h"
23 #include "chrome/common/extensions/features/feature_channel.h" 22 #include "chrome/common/extensions/features/feature_channel.h"
24 #include "chrome/common/extensions/manifest_handlers/externally_connectable.h" 23 #include "chrome/common/extensions/manifest_handlers/externally_connectable.h"
25 #include "chrome/common/extensions/message_bundle.h" 24 #include "chrome/common/extensions/message_bundle.h"
26 #include "chrome/common/url_constants.h" 25 #include "chrome/common/url_constants.h"
27 #include "chrome/renderer/chrome_render_process_observer.h" 26 #include "chrome/renderer/chrome_render_process_observer.h"
28 #include "chrome/renderer/extensions/api_activity_logger.h" 27 #include "chrome/renderer/extensions/api_activity_logger.h"
29 #include "chrome/renderer/extensions/api_definitions_natives.h" 28 #include "chrome/renderer/extensions/api_definitions_natives.h"
30 #include "chrome/renderer/extensions/app_bindings.h" 29 #include "chrome/renderer/extensions/app_bindings.h"
31 #include "chrome/renderer/extensions/app_runtime_custom_bindings.h" 30 #include "chrome/renderer/extensions/app_runtime_custom_bindings.h"
32 #include "chrome/renderer/extensions/app_window_custom_bindings.h" 31 #include "chrome/renderer/extensions/app_window_custom_bindings.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 #include "chrome/renderer/extensions/user_script_slave.h" 66 #include "chrome/renderer/extensions/user_script_slave.h"
68 #include "chrome/renderer/extensions/utils_native_handler.h" 67 #include "chrome/renderer/extensions/utils_native_handler.h"
69 #include "chrome/renderer/extensions/webstore_bindings.h" 68 #include "chrome/renderer/extensions/webstore_bindings.h"
70 #include "chrome/renderer/resource_bundle_source_map.h" 69 #include "chrome/renderer/resource_bundle_source_map.h"
71 #include "content/public/renderer/render_thread.h" 70 #include "content/public/renderer/render_thread.h"
72 #include "content/public/renderer/render_view.h" 71 #include "content/public/renderer/render_view.h"
73 #include "content/public/renderer/v8_value_converter.h" 72 #include "content/public/renderer/v8_value_converter.h"
74 #include "extensions/common/constants.h" 73 #include "extensions/common/constants.h"
75 #include "extensions/common/extension.h" 74 #include "extensions/common/extension.h"
76 #include "extensions/common/extension_api.h" 75 #include "extensions/common/extension_api.h"
76 #include "extensions/common/extension_messages.h"
77 #include "extensions/common/extension_urls.h" 77 #include "extensions/common/extension_urls.h"
78 #include "extensions/common/features/feature.h" 78 #include "extensions/common/features/feature.h"
79 #include "extensions/common/features/feature_provider.h" 79 #include "extensions/common/features/feature_provider.h"
80 #include "extensions/common/manifest.h" 80 #include "extensions/common/manifest.h"
81 #include "extensions/common/manifest_constants.h" 81 #include "extensions/common/manifest_constants.h"
82 #include "extensions/common/manifest_handlers/background_info.h" 82 #include "extensions/common/manifest_handlers/background_info.h"
83 #include "extensions/common/manifest_handlers/sandboxed_page_info.h" 83 #include "extensions/common/manifest_handlers/sandboxed_page_info.h"
84 #include "extensions/common/permissions/permission_set.h" 84 #include "extensions/common/permissions/permission_set.h"
85 #include "extensions/common/permissions/permissions_data.h" 85 #include "extensions/common/permissions/permissions_data.h"
86 #include "extensions/common/switches.h" 86 #include "extensions/common/switches.h"
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 } 1693 }
1694 1694
1695 void Dispatcher::ClearPortData(int port_id) { 1695 void Dispatcher::ClearPortData(int port_id) {
1696 // Only the target port side has entries in |port_to_tab_id_map_|. If 1696 // Only the target port side has entries in |port_to_tab_id_map_|. If
1697 // |port_id| is a source port, std::map::erase() will just silently fail 1697 // |port_id| is a source port, std::map::erase() will just silently fail
1698 // here as a no-op. 1698 // here as a no-op.
1699 port_to_tab_id_map_.erase(port_id); 1699 port_to_tab_id_map_.erase(port_id);
1700 } 1700 }
1701 1701
1702 } // namespace extensions 1702 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/context_menus_custom_bindings.cc ('k') | chrome/renderer/extensions/dom_activity_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698