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 21 matching lines...) Expand all Loading... |
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/manifest_handlers/app_launch_info.h" | 41 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
42 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" | |
43 #include "chrome/common/render_messages.h" | 42 #include "chrome/common/render_messages.h" |
44 #include "chrome/common/url_constants.h" | 43 #include "chrome/common/url_constants.h" |
45 #include "content/public/browser/invalidate_type.h" | 44 #include "content/public/browser/invalidate_type.h" |
46 #include "content/public/browser/navigation_controller.h" | 45 #include "content/public/browser/navigation_controller.h" |
47 #include "content/public/browser/navigation_details.h" | 46 #include "content/public/browser/navigation_details.h" |
48 #include "content/public/browser/navigation_entry.h" | 47 #include "content/public/browser/navigation_entry.h" |
49 #include "content/public/browser/notification_service.h" | 48 #include "content/public/browser/notification_service.h" |
50 #include "content/public/browser/notification_source.h" | 49 #include "content/public/browser/notification_source.h" |
51 #include "content/public/browser/notification_types.h" | 50 #include "content/public/browser/notification_types.h" |
52 #include "content/public/browser/render_process_host.h" | 51 #include "content/public/browser/render_process_host.h" |
53 #include "content/public/browser/render_view_host.h" | 52 #include "content/public/browser/render_view_host.h" |
54 #include "content/public/browser/render_widget_host_view.h" | 53 #include "content/public/browser/render_widget_host_view.h" |
55 #include "content/public/browser/web_contents.h" | 54 #include "content/public/browser/web_contents.h" |
56 #include "content/public/browser/web_contents_view.h" | 55 #include "content/public/browser/web_contents_view.h" |
57 #include "content/public/common/frame_navigate_params.h" | 56 #include "content/public/common/frame_navigate_params.h" |
58 #include "extensions/browser/extension_error.h" | 57 #include "extensions/browser/extension_error.h" |
59 #include "extensions/browser/extension_registry.h" | 58 #include "extensions/browser/extension_registry.h" |
60 #include "extensions/browser/extension_system.h" | 59 #include "extensions/browser/extension_system.h" |
61 #include "extensions/common/extension.h" | 60 #include "extensions/common/extension.h" |
62 #include "extensions/common/extension_icon_set.h" | 61 #include "extensions/common/extension_icon_set.h" |
63 #include "extensions/common/extension_messages.h" | 62 #include "extensions/common/extension_messages.h" |
64 #include "extensions/common/extension_resource.h" | 63 #include "extensions/common/extension_resource.h" |
65 #include "extensions/common/extension_urls.h" | 64 #include "extensions/common/extension_urls.h" |
66 #include "extensions/common/feature_switch.h" | 65 #include "extensions/common/feature_switch.h" |
| 66 #include "extensions/common/manifest_handlers/icons_handler.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) |
73 #include "chrome/browser/web_applications/web_app_win.h" | 73 #include "chrome/browser/web_applications/web_app_win.h" |
74 #endif | 74 #endif |
75 | 75 |
76 using content::NavigationController; | 76 using content::NavigationController; |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 } | 579 } |
580 } | 580 } |
581 | 581 |
582 void TabHelper::SetTabId(RenderViewHost* render_view_host) { | 582 void TabHelper::SetTabId(RenderViewHost* render_view_host) { |
583 render_view_host->Send( | 583 render_view_host->Send( |
584 new ExtensionMsg_SetTabId(render_view_host->GetRoutingID(), | 584 new ExtensionMsg_SetTabId(render_view_host->GetRoutingID(), |
585 SessionID::IdForTab(web_contents()))); | 585 SessionID::IdForTab(web_contents()))); |
586 } | 586 } |
587 | 587 |
588 } // namespace extensions | 588 } // namespace extensions |
OLD | NEW |