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/extension_tab_helper.h" | 5 #include "chrome/browser/extensions/extension_tab_helper.h" |
6 | 6 |
7 #include "chrome/browser/extensions/extension_service.h" | 7 #include "chrome/browser/extensions/extension_service.h" |
8 #include "chrome/browser/extensions/page_action_controller.h" | 8 #include "chrome/browser/extensions/page_action_controller.h" |
9 #include "chrome/browser/extensions/script_badge_controller.h" | 9 #include "chrome/browser/extensions/script_badge_controller.h" |
10 #include "chrome/browser/extensions/script_executor_impl.h" | 10 #include "chrome/browser/extensions/script_executor_impl.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "content/public/browser/invalidate_type.h" | 24 #include "content/public/browser/invalidate_type.h" |
25 #include "content/public/browser/navigation_details.h" | 25 #include "content/public/browser/navigation_details.h" |
26 #include "content/public/browser/notification_service.h" | 26 #include "content/public/browser/notification_service.h" |
27 #include "content/public/browser/render_process_host.h" | 27 #include "content/public/browser/render_process_host.h" |
28 #include "content/public/browser/render_view_host.h" | 28 #include "content/public/browser/render_view_host.h" |
29 #include "content/public/browser/render_widget_host_view.h" | 29 #include "content/public/browser/render_widget_host_view.h" |
30 #include "content/public/browser/web_contents.h" | 30 #include "content/public/browser/web_contents.h" |
31 #include "ui/gfx/image/image.h" | 31 #include "ui/gfx/image/image.h" |
32 | 32 |
33 using content::WebContents; | 33 using content::WebContents; |
| 34 using extensions::Extension; |
34 using extensions::ScriptBadgeController; | 35 using extensions::ScriptBadgeController; |
35 using extensions::ScriptExecutorImpl; | 36 using extensions::ScriptExecutorImpl; |
36 using extensions::PageActionController; | 37 using extensions::PageActionController; |
37 | 38 |
38 namespace { | 39 namespace { |
39 | 40 |
40 const char kPermissionError[] = "permission_error"; | 41 const char kPermissionError[] = "permission_error"; |
41 | 42 |
42 } // namespace | 43 } // namespace |
43 | 44 |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 void ExtensionTabHelper::OnInlineInstallFailure(int install_id, | 379 void ExtensionTabHelper::OnInlineInstallFailure(int install_id, |
379 int return_route_id, | 380 int return_route_id, |
380 const std::string& error) { | 381 const std::string& error) { |
381 Send(new ExtensionMsg_InlineWebstoreInstallResponse( | 382 Send(new ExtensionMsg_InlineWebstoreInstallResponse( |
382 return_route_id, install_id, false, error)); | 383 return_route_id, install_id, false, error)); |
383 } | 384 } |
384 | 385 |
385 WebContents* ExtensionTabHelper::GetAssociatedWebContents() const { | 386 WebContents* ExtensionTabHelper::GetAssociatedWebContents() const { |
386 return web_contents(); | 387 return web_contents(); |
387 } | 388 } |
OLD | NEW |