| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_INFOBARS_INFOBAR_EXTENSION_API_H_ | 5 #ifndef CHROME_BROWSER_INFOBARS_INFOBAR_EXTENSION_API_H_ |
| 6 #define CHROME_BROWSER_INFOBARS_INFOBAR_EXTENSION_API_H_ | 6 #define CHROME_BROWSER_INFOBARS_INFOBAR_EXTENSION_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
| 10 | 10 |
| 11 class ShowInfoBarFunction : public SyncExtensionFunction { | 11 class ShowInfoBarFunction : public SyncExtensionFunction { |
| 12 virtual ~ShowInfoBarFunction() {} | 12 virtual ~ShowInfoBarFunction() {} |
| 13 virtual bool RunImpl(); | 13 virtual bool RunImpl() OVERRIDE; |
| 14 DECLARE_EXTENSION_FUNCTION_NAME("experimental.infobars.show") | 14 DECLARE_EXTENSION_FUNCTION_NAME("experimental.infobars.show") |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_EXTENSION_API_H_ | 17 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_EXTENSION_API_H_ |
| OLD | NEW |