| 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/page_action_controller.h" | 5 #include "chrome/browser/extensions/page_action_controller.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | |
| 8 #include "chrome/browser/extensions/extension_browser_event_router.h" | 7 #include "chrome/browser/extensions/extension_browser_event_router.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/extensions/extension_system.h" | 9 #include "chrome/browser/extensions/extension_system.h" |
| 11 #include "chrome/browser/extensions/extension_tab_util.h" | 10 #include "chrome/browser/extensions/extension_tab_util.h" |
| 11 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 12 #include "chrome/common/extensions/extension_set.h" | 12 #include "chrome/common/extensions/extension_set.h" |
| 13 #include "chrome/common/chrome_notification_types.h" | 13 #include "chrome/common/chrome_notification_types.h" |
| 14 #include "content/public/browser/notification_service.h" | 14 #include "content/public/browser/notification_service.h" |
| 15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 | 18 |
| 19 PageActionController::PageActionController(TabContentsWrapper* tab_contents) | 19 PageActionController::PageActionController(TabContents* tab_contents) |
| 20 : tab_contents_(tab_contents) {} | 20 : tab_contents_(tab_contents) {} |
| 21 | 21 |
| 22 PageActionController::~PageActionController() {} | 22 PageActionController::~PageActionController() {} |
| 23 | 23 |
| 24 scoped_ptr<std::vector<ExtensionAction*> > | 24 scoped_ptr<std::vector<ExtensionAction*> > |
| 25 PageActionController::GetCurrentActions() { | 25 PageActionController::GetCurrentActions() { |
| 26 scoped_ptr<std::vector<ExtensionAction*> > current_actions( | 26 scoped_ptr<std::vector<ExtensionAction*> > current_actions( |
| 27 new std::vector<ExtensionAction*>()); | 27 new std::vector<ExtensionAction*>()); |
| 28 | 28 |
| 29 ExtensionService* service = GetExtensionService(); | 29 ExtensionService* service = GetExtensionService(); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 72 } |
| 73 | 73 |
| 74 return ACTION_NONE; | 74 return ACTION_NONE; |
| 75 } | 75 } |
| 76 | 76 |
| 77 ExtensionService* PageActionController::GetExtensionService() { | 77 ExtensionService* PageActionController::GetExtensionService() { |
| 78 return ExtensionSystem::Get(tab_contents_->profile())->extension_service(); | 78 return ExtensionSystem::Get(tab_contents_->profile())->extension_service(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace extensions | 81 } // namespace extensions |
| OLD | NEW |