| 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/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/features/feature_channel.h" | 21 #include "chrome/common/extensions/features/feature_channel.h" |
| 22 #include "chrome/common/extensions/manifest_handlers/externally_connectable.h" | 22 #include "chrome/common/extensions/manifest_handlers/externally_connectable.h" |
| 23 #include "chrome/common/extensions/message_bundle.h" | |
| 24 #include "chrome/common/url_constants.h" | 23 #include "chrome/common/url_constants.h" |
| 25 #include "chrome/renderer/chrome_render_process_observer.h" | 24 #include "chrome/renderer/chrome_render_process_observer.h" |
| 26 #include "chrome/renderer/extensions/api_activity_logger.h" | 25 #include "chrome/renderer/extensions/api_activity_logger.h" |
| 27 #include "chrome/renderer/extensions/api_definitions_natives.h" | 26 #include "chrome/renderer/extensions/api_definitions_natives.h" |
| 28 #include "chrome/renderer/extensions/app_bindings.h" | 27 #include "chrome/renderer/extensions/app_bindings.h" |
| 29 #include "chrome/renderer/extensions/app_runtime_custom_bindings.h" | 28 #include "chrome/renderer/extensions/app_runtime_custom_bindings.h" |
| 30 #include "chrome/renderer/extensions/app_window_custom_bindings.h" | 29 #include "chrome/renderer/extensions/app_window_custom_bindings.h" |
| 31 #include "chrome/renderer/extensions/binding_generating_native_handler.h" | 30 #include "chrome/renderer/extensions/binding_generating_native_handler.h" |
| 32 #include "chrome/renderer/extensions/blob_native_handler.h" | 31 #include "chrome/renderer/extensions/blob_native_handler.h" |
| 33 #include "chrome/renderer/extensions/chrome_v8_context.h" | 32 #include "chrome/renderer/extensions/chrome_v8_context.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 #include "extensions/common/extension.h" | 73 #include "extensions/common/extension.h" |
| 75 #include "extensions/common/extension_api.h" | 74 #include "extensions/common/extension_api.h" |
| 76 #include "extensions/common/extension_messages.h" | 75 #include "extensions/common/extension_messages.h" |
| 77 #include "extensions/common/extension_urls.h" | 76 #include "extensions/common/extension_urls.h" |
| 78 #include "extensions/common/features/feature.h" | 77 #include "extensions/common/features/feature.h" |
| 79 #include "extensions/common/features/feature_provider.h" | 78 #include "extensions/common/features/feature_provider.h" |
| 80 #include "extensions/common/manifest.h" | 79 #include "extensions/common/manifest.h" |
| 81 #include "extensions/common/manifest_constants.h" | 80 #include "extensions/common/manifest_constants.h" |
| 82 #include "extensions/common/manifest_handlers/background_info.h" | 81 #include "extensions/common/manifest_handlers/background_info.h" |
| 83 #include "extensions/common/manifest_handlers/sandboxed_page_info.h" | 82 #include "extensions/common/manifest_handlers/sandboxed_page_info.h" |
| 83 #include "extensions/common/message_bundle.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" |
| 87 #include "extensions/common/view_type.h" | 87 #include "extensions/common/view_type.h" |
| 88 #include "grit/common_resources.h" | 88 #include "grit/common_resources.h" |
| 89 #include "grit/renderer_resources.h" | 89 #include "grit/renderer_resources.h" |
| 90 #include "third_party/WebKit/public/platform/WebString.h" | 90 #include "third_party/WebKit/public/platform/WebString.h" |
| 91 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 91 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 92 #include "third_party/WebKit/public/web/WebCustomElement.h" | 92 #include "third_party/WebKit/public/web/WebCustomElement.h" |
| 93 #include "third_party/WebKit/public/web/WebDataSource.h" | 93 #include "third_party/WebKit/public/web/WebDataSource.h" |
| (...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1696 } | 1696 } |
| 1697 | 1697 |
| 1698 void Dispatcher::ClearPortData(int port_id) { | 1698 void Dispatcher::ClearPortData(int port_id) { |
| 1699 // Only the target port side has entries in |port_to_tab_id_map_|. If | 1699 // Only the target port side has entries in |port_to_tab_id_map_|. If |
| 1700 // |port_id| is a source port, std::map::erase() will just silently fail | 1700 // |port_id| is a source port, std::map::erase() will just silently fail |
| 1701 // here as a no-op. | 1701 // here as a no-op. |
| 1702 port_to_tab_id_map_.erase(port_id); | 1702 port_to_tab_id_map_.erase(port_id); |
| 1703 } | 1703 } |
| 1704 | 1704 |
| 1705 } // namespace extensions | 1705 } // namespace extensions |
| OLD | NEW |