Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: chrome/browser/extensions/extension_install_ui.h

Issue 7920023: Fix crashes related to the extension uninstall dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make Show() pure virtual Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "chrome/browser/extensions/image_loading_tracker.h" 14 #include "chrome/browser/extensions/image_loading_tracker.h"
15 #include "chrome/common/extensions/url_pattern.h" 15 #include "chrome/common/extensions/url_pattern.h"
16 #include "third_party/skia/include/core/SkBitmap.h" 16 #include "third_party/skia/include/core/SkBitmap.h"
17 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
18 18
19 class Browser; 19 class Browser;
20 class Extension; 20 class Extension;
21 class ExtensionPermissionSet; 21 class ExtensionPermissionSet;
22 class MessageLoop; 22 class MessageLoop;
23 class Profile; 23 class Profile;
24 class InfoBarDelegate; 24 class InfoBarDelegate;
25 class TabContents; 25 class TabContents;
26 26
27 // Displays all the UI around extension installation and uninstallation. 27 // Displays all the UI around extension installation.
28 class ExtensionInstallUI : public ImageLoadingTracker::Observer { 28 class ExtensionInstallUI : public ImageLoadingTracker::Observer {
29 public: 29 public:
30 enum PromptType { 30 enum PromptType {
31 UNSET_PROMPT_TYPE = -1, 31 UNSET_PROMPT_TYPE = -1,
32 INSTALL_PROMPT = 0, 32 INSTALL_PROMPT = 0,
33 INLINE_INSTALL_PROMPT, 33 INLINE_INSTALL_PROMPT,
34 RE_ENABLE_PROMPT, 34 RE_ENABLE_PROMPT,
35 PERMISSIONS_PROMPT, 35 PERMISSIONS_PROMPT,
36 NUM_PROMPT_TYPES 36 NUM_PROMPT_TYPES
37 }; 37 };
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // Keeps track of extension images being loaded on the File thread for the 209 // Keeps track of extension images being loaded on the File thread for the
210 // purpose of showing the install UI. 210 // purpose of showing the install UI.
211 ImageLoadingTracker tracker_; 211 ImageLoadingTracker tracker_;
212 212
213 // Whether to show an installed bubble on app install, or use the default 213 // Whether to show an installed bubble on app install, or use the default
214 // action of opening a new tab page. 214 // action of opening a new tab page.
215 bool use_app_installed_bubble_; 215 bool use_app_installed_bubble_;
216 }; 216 };
217 217
218 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ 218 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_context_menu_model.cc ('k') | chrome/browser/extensions/extension_uninstall_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698