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/tab_helper.h" | 5 #include "chrome/browser/extensions/tab_helper.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "chrome/browser/shell_integration.h" | 31 #include "chrome/browser/shell_integration.h" |
32 #include "chrome/browser/ui/browser_commands.h" | 32 #include "chrome/browser/ui/browser_commands.h" |
33 #include "chrome/browser/ui/browser_dialogs.h" | 33 #include "chrome/browser/ui/browser_dialogs.h" |
34 #include "chrome/browser/ui/browser_finder.h" | 34 #include "chrome/browser/ui/browser_finder.h" |
35 #include "chrome/browser/ui/browser_window.h" | 35 #include "chrome/browser/ui/browser_window.h" |
36 #include "chrome/browser/ui/host_desktop.h" | 36 #include "chrome/browser/ui/host_desktop.h" |
37 #include "chrome/browser/web_applications/web_app.h" | 37 #include "chrome/browser/web_applications/web_app.h" |
38 #include "chrome/common/chrome_switches.h" | 38 #include "chrome/common/chrome_switches.h" |
39 #include "chrome/common/extensions/chrome_extension_messages.h" | 39 #include "chrome/common/extensions/chrome_extension_messages.h" |
40 #include "chrome/common/extensions/extension_constants.h" | 40 #include "chrome/common/extensions/extension_constants.h" |
41 #include "chrome/common/extensions/extension_icon_set.h" | |
42 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 41 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
43 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" | 42 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" |
44 #include "chrome/common/render_messages.h" | 43 #include "chrome/common/render_messages.h" |
45 #include "chrome/common/url_constants.h" | 44 #include "chrome/common/url_constants.h" |
46 #include "content/public/browser/invalidate_type.h" | 45 #include "content/public/browser/invalidate_type.h" |
47 #include "content/public/browser/navigation_controller.h" | 46 #include "content/public/browser/navigation_controller.h" |
48 #include "content/public/browser/navigation_details.h" | 47 #include "content/public/browser/navigation_details.h" |
49 #include "content/public/browser/navigation_entry.h" | 48 #include "content/public/browser/navigation_entry.h" |
50 #include "content/public/browser/notification_service.h" | 49 #include "content/public/browser/notification_service.h" |
51 #include "content/public/browser/notification_source.h" | 50 #include "content/public/browser/notification_source.h" |
52 #include "content/public/browser/notification_types.h" | 51 #include "content/public/browser/notification_types.h" |
53 #include "content/public/browser/render_process_host.h" | 52 #include "content/public/browser/render_process_host.h" |
54 #include "content/public/browser/render_view_host.h" | 53 #include "content/public/browser/render_view_host.h" |
55 #include "content/public/browser/render_widget_host_view.h" | 54 #include "content/public/browser/render_widget_host_view.h" |
56 #include "content/public/browser/web_contents.h" | 55 #include "content/public/browser/web_contents.h" |
57 #include "content/public/browser/web_contents_view.h" | 56 #include "content/public/browser/web_contents_view.h" |
58 #include "content/public/common/frame_navigate_params.h" | 57 #include "content/public/common/frame_navigate_params.h" |
59 #include "extensions/browser/extension_error.h" | 58 #include "extensions/browser/extension_error.h" |
60 #include "extensions/browser/extension_registry.h" | 59 #include "extensions/browser/extension_registry.h" |
61 #include "extensions/browser/extension_system.h" | 60 #include "extensions/browser/extension_system.h" |
62 #include "extensions/common/extension.h" | 61 #include "extensions/common/extension.h" |
| 62 #include "extensions/common/extension_icon_set.h" |
63 #include "extensions/common/extension_messages.h" | 63 #include "extensions/common/extension_messages.h" |
64 #include "extensions/common/extension_resource.h" | 64 #include "extensions/common/extension_resource.h" |
65 #include "extensions/common/extension_urls.h" | 65 #include "extensions/common/extension_urls.h" |
66 #include "extensions/common/feature_switch.h" | 66 #include "extensions/common/feature_switch.h" |
67 | 67 |
68 #if defined(OS_CHROMEOS) | 68 #if defined(OS_CHROMEOS) |
69 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 69 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
70 #endif | 70 #endif |
71 | 71 |
72 #if defined(OS_WIN) | 72 #if defined(OS_WIN) |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 } | 570 } |
571 } | 571 } |
572 | 572 |
573 void TabHelper::SetTabId(RenderViewHost* render_view_host) { | 573 void TabHelper::SetTabId(RenderViewHost* render_view_host) { |
574 render_view_host->Send( | 574 render_view_host->Send( |
575 new ExtensionMsg_SetTabId(render_view_host->GetRoutingID(), | 575 new ExtensionMsg_SetTabId(render_view_host->GetRoutingID(), |
576 SessionID::IdForTab(web_contents()))); | 576 SessionID::IdForTab(web_contents()))); |
577 } | 577 } |
578 | 578 |
579 } // namespace extensions | 579 } // namespace extensions |
OLD | NEW |