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_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "chrome/browser/tab_contents/infobar_delegate.h" | 12 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
13 | 13 |
14 class Extension; | 14 class Extension; |
15 class ExtensionService; | 15 class ExtensionService; |
16 class SkBitmap; | 16 class SkBitmap; |
17 | 17 |
18 // This infobar will be displayed when an extension process crashes. It allows | 18 // This infobar will be displayed when an extension process crashes. It allows |
19 // the user to reload the crashed extension. | 19 // the user to reload the crashed extension. |
20 class CrashedExtensionInfoBarDelegate : public ConfirmInfoBarDelegate { | 20 class CrashedExtensionInfoBarDelegate : public ConfirmInfoBarDelegate { |
21 public: | 21 public: |
22 // |tab_contents| should point to the TabContents the infobar will be added | 22 // |tab_contents| should point to the TabContents the infobar will be added |
(...skipping 21 matching lines...) Expand all Loading... |
44 | 44 |
45 ExtensionService* extensions_service_; | 45 ExtensionService* extensions_service_; |
46 | 46 |
47 const std::string extension_id_; | 47 const std::string extension_id_; |
48 const std::string extension_name_; | 48 const std::string extension_name_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(CrashedExtensionInfoBarDelegate); | 50 DISALLOW_COPY_AND_ASSIGN(CrashedExtensionInfoBarDelegate); |
51 }; | 51 }; |
52 | 52 |
53 #endif // CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ | 53 #endif // CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ |
OLD | NEW |