| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_INSTALL_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/file_path.h" | |
| 13 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 14 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 15 #include "base/string16.h" | 14 #include "base/string16.h" |
| 16 #include "chrome/browser/extensions/image_loading_tracker.h" | 15 #include "chrome/browser/extensions/image_loading_tracker.h" |
| 17 #include "gfx/native_widget_types.h" | 16 #include "gfx/native_widget_types.h" |
| 18 #include "third_party/skia/include/core/SkBitmap.h" | 17 #include "third_party/skia/include/core/SkBitmap.h" |
| 19 | 18 |
| 20 class Extension; | 19 class Extension; |
| 21 class ExtensionsService; | |
| 22 class MessageLoop; | 20 class MessageLoop; |
| 23 class Profile; | 21 class Profile; |
| 24 class InfoBarDelegate; | 22 class InfoBarDelegate; |
| 25 class SandboxedExtensionUnpacker; | |
| 26 class TabContents; | 23 class TabContents; |
| 27 | 24 |
| 28 // Displays all the UI around extension installation and uninstallation. | 25 // Displays all the UI around extension installation and uninstallation. |
| 29 class ExtensionInstallUI : public ImageLoadingTracker::Observer { | 26 class ExtensionInstallUI : public ImageLoadingTracker::Observer { |
| 30 public: | 27 public: |
| 31 enum PromptType { | 28 enum PromptType { |
| 32 INSTALL_PROMPT = 0, | 29 INSTALL_PROMPT = 0, |
| 33 UNINSTALL_PROMPT, | 30 UNINSTALL_PROMPT, |
| 34 NUM_PROMPT_TYPES | 31 NUM_PROMPT_TYPES |
| 35 }; | 32 }; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 Delegate* delegate_; // The delegate we will call Proceed/Abort on after | 130 Delegate* delegate_; // The delegate we will call Proceed/Abort on after |
| 134 // confirmation UI. | 131 // confirmation UI. |
| 135 PromptType prompt_type_; // The type of prompt we are going to show. | 132 PromptType prompt_type_; // The type of prompt we are going to show. |
| 136 | 133 |
| 137 // Keeps track of extension images being loaded on the File thread for the | 134 // Keeps track of extension images being loaded on the File thread for the |
| 138 // purpose of showing the install UI. | 135 // purpose of showing the install UI. |
| 139 ImageLoadingTracker tracker_; | 136 ImageLoadingTracker tracker_; |
| 140 }; | 137 }; |
| 141 | 138 |
| 142 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 139 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| OLD | NEW |