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/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/extensions/activity_log/activity_log.h" | 10 #include "chrome/browser/extensions/activity_log/activity_log.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/extensions/script_bubble_controller.h" | 23 #include "chrome/browser/extensions/script_bubble_controller.h" |
24 #include "chrome/browser/extensions/script_executor.h" | 24 #include "chrome/browser/extensions/script_executor.h" |
25 #include "chrome/browser/extensions/webstore_inline_installer.h" | 25 #include "chrome/browser/extensions/webstore_inline_installer.h" |
26 #include "chrome/browser/extensions/webstore_inline_installer_factory.h" | 26 #include "chrome/browser/extensions/webstore_inline_installer_factory.h" |
27 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
28 #include "chrome/browser/sessions/session_id.h" | 28 #include "chrome/browser/sessions/session_id.h" |
29 #include "chrome/browser/sessions/session_tab_helper.h" | 29 #include "chrome/browser/sessions/session_tab_helper.h" |
30 #include "chrome/browser/ui/browser_dialogs.h" | 30 #include "chrome/browser/ui/browser_dialogs.h" |
31 #include "chrome/browser/ui/web_applications/web_app_ui.h" | 31 #include "chrome/browser/ui/web_applications/web_app_ui.h" |
32 #include "chrome/browser/web_applications/web_app.h" | 32 #include "chrome/browser/web_applications/web_app.h" |
33 #include "chrome/common/extensions/extension.h" | |
34 #include "chrome/common/extensions/extension_constants.h" | 33 #include "chrome/common/extensions/extension_constants.h" |
35 #include "chrome/common/extensions/extension_icon_set.h" | 34 #include "chrome/common/extensions/extension_icon_set.h" |
36 #include "chrome/common/extensions/extension_messages.h" | 35 #include "chrome/common/extensions/extension_messages.h" |
37 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 36 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
38 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" | 37 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" |
39 #include "chrome/common/render_messages.h" | 38 #include "chrome/common/render_messages.h" |
40 #include "content/public/browser/invalidate_type.h" | 39 #include "content/public/browser/invalidate_type.h" |
41 #include "content/public/browser/navigation_controller.h" | 40 #include "content/public/browser/navigation_controller.h" |
42 #include "content/public/browser/navigation_details.h" | 41 #include "content/public/browser/navigation_details.h" |
43 #include "content/public/browser/navigation_entry.h" | 42 #include "content/public/browser/navigation_entry.h" |
44 #include "content/public/browser/notification_service.h" | 43 #include "content/public/browser/notification_service.h" |
45 #include "content/public/browser/notification_source.h" | 44 #include "content/public/browser/notification_source.h" |
46 #include "content/public/browser/notification_types.h" | 45 #include "content/public/browser/notification_types.h" |
47 #include "content/public/browser/render_process_host.h" | 46 #include "content/public/browser/render_process_host.h" |
48 #include "content/public/browser/render_view_host.h" | 47 #include "content/public/browser/render_view_host.h" |
49 #include "content/public/browser/render_widget_host_view.h" | 48 #include "content/public/browser/render_widget_host_view.h" |
50 #include "content/public/browser/web_contents.h" | 49 #include "content/public/browser/web_contents.h" |
51 #include "content/public/browser/web_contents_view.h" | 50 #include "content/public/browser/web_contents_view.h" |
52 #include "extensions/browser/extension_error.h" | 51 #include "extensions/browser/extension_error.h" |
| 52 #include "extensions/common/extension.h" |
53 #include "extensions/common/extension_resource.h" | 53 #include "extensions/common/extension_resource.h" |
54 #include "extensions/common/extension_urls.h" | 54 #include "extensions/common/extension_urls.h" |
55 #include "extensions/common/feature_switch.h" | 55 #include "extensions/common/feature_switch.h" |
56 #include "ui/gfx/image/image.h" | 56 #include "ui/gfx/image/image.h" |
57 | 57 |
58 using content::NavigationController; | 58 using content::NavigationController; |
59 using content::NavigationEntry; | 59 using content::NavigationEntry; |
60 using content::RenderViewHost; | 60 using content::RenderViewHost; |
61 using content::WebContents; | 61 using content::WebContents; |
62 | 62 |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 } | 487 } |
488 } | 488 } |
489 | 489 |
490 void TabHelper::SetTabId(RenderViewHost* render_view_host) { | 490 void TabHelper::SetTabId(RenderViewHost* render_view_host) { |
491 render_view_host->Send( | 491 render_view_host->Send( |
492 new ExtensionMsg_SetTabId(render_view_host->GetRoutingID(), | 492 new ExtensionMsg_SetTabId(render_view_host->GetRoutingID(), |
493 SessionID::IdForTab(web_contents()))); | 493 SessionID::IdForTab(web_contents()))); |
494 } | 494 } |
495 | 495 |
496 } // namespace extensions | 496 } // namespace extensions |
OLD | NEW |