| 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 #ifndef CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/extensions/location_bar_controller.h" | 10 #include "chrome/browser/extensions/location_bar_controller.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 virtual ExtensionAction* GetActionForExtension(const Extension* extension) | 26 virtual ExtensionAction* GetActionForExtension(const Extension* extension) |
| 27 OVERRIDE; | 27 OVERRIDE; |
| 28 virtual LocationBarController::Action OnClicked( | 28 virtual LocationBarController::Action OnClicked( |
| 29 const Extension* extension) OVERRIDE; | 29 const Extension* extension) OVERRIDE; |
| 30 virtual void OnNavigated() OVERRIDE; | 30 virtual void OnNavigated() OVERRIDE; |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 // Returns the associated Profile. | 33 // Returns the associated Profile. |
| 34 Profile* GetProfile(); | 34 Profile* GetProfile(); |
| 35 | 35 |
| 36 // The current page actions for the associated WebContents. | |
| 37 std::vector<ExtensionAction*> current_actions_; | |
| 38 | |
| 39 // The associated WebContents. | 36 // The associated WebContents. |
| 40 content::WebContents* web_contents_; | 37 content::WebContents* web_contents_; |
| 41 | 38 |
| 42 DISALLOW_COPY_AND_ASSIGN(PageActionController); | 39 DISALLOW_COPY_AND_ASSIGN(PageActionController); |
| 43 }; | 40 }; |
| 44 | 41 |
| 45 } // namespace extensions | 42 } // namespace extensions |
| 46 | 43 |
| 47 #endif // CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_ |
| OLD | NEW |