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_EXTENSION_UNINSTALL_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_UNINSTALL_DIALOG_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UNINSTALL_DIALOG_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UNINSTALL_DIALOG_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
13 #include "content/public/browser/notification_registrar.h" | 13 #include "content/public/browser/notification_registrar.h" |
14 #include "ui/gfx/image/image_skia.h" | 14 #include "ui/gfx/image/image_skia.h" |
15 | 15 |
16 class Browser; | 16 class Browser; |
| 17 class Profile; |
| 18 |
| 19 namespace base { |
17 class MessageLoop; | 20 class MessageLoop; |
18 class Profile; | 21 } |
19 | 22 |
20 namespace extensions { | 23 namespace extensions { |
21 class Extension; | 24 class Extension; |
22 } | 25 } |
23 | 26 |
24 namespace gfx { | 27 namespace gfx { |
25 class Image; | 28 class Image; |
26 } | 29 } |
27 | 30 |
28 class ExtensionUninstallDialog | 31 class ExtensionUninstallDialog |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 106 |
104 // Keeps track of whether we're still waiting for an image to load before | 107 // Keeps track of whether we're still waiting for an image to load before |
105 // we show the dialog. | 108 // we show the dialog. |
106 enum State { | 109 enum State { |
107 kImageIsLoading, // Image is loading asynchronously. | 110 kImageIsLoading, // Image is loading asynchronously. |
108 kDialogIsShowing, // Dialog is shown after image is loaded. | 111 kDialogIsShowing, // Dialog is shown after image is loaded. |
109 kBrowserIsClosing // Browser is closed while image is still loading. | 112 kBrowserIsClosing // Browser is closed while image is still loading. |
110 }; | 113 }; |
111 State state_; | 114 State state_; |
112 | 115 |
113 MessageLoop* ui_loop_; | 116 base::MessageLoop* ui_loop_; |
114 | 117 |
115 content::NotificationRegistrar registrar_; | 118 content::NotificationRegistrar registrar_; |
116 | 119 |
117 DISALLOW_COPY_AND_ASSIGN(ExtensionUninstallDialog); | 120 DISALLOW_COPY_AND_ASSIGN(ExtensionUninstallDialog); |
118 }; | 121 }; |
119 | 122 |
120 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UNINSTALL_DIALOG_H_ | 123 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UNINSTALL_DIALOG_H_ |
OLD | NEW |