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

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

Issue 2705733002: [Extensions] Deprecate old install prompt types (Closed)
Patch Set: . Created 3 years, 10 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
OLDNEW
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_INSTALL_PROMPT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 // Displays all the UI around extension installation. 49 // Displays all the UI around extension installation.
50 class ExtensionInstallPrompt { 50 class ExtensionInstallPrompt {
51 public: 51 public:
52 // This enum is associated with Extensions.InstallPrompt_Type UMA histogram. 52 // This enum is associated with Extensions.InstallPrompt_Type UMA histogram.
53 // Do not modify existing values and add new values only to the end. 53 // Do not modify existing values and add new values only to the end.
54 enum PromptType { 54 enum PromptType {
55 UNSET_PROMPT_TYPE = -1, 55 UNSET_PROMPT_TYPE = -1,
56 INSTALL_PROMPT = 0, 56 INSTALL_PROMPT = 0,
57 INLINE_INSTALL_PROMPT, 57 INLINE_INSTALL_PROMPT = 1,
58 BUNDLE_INSTALL_PROMPT_DEPRECATED, 58 // BUNDLE_INSTALL_PROMPT_DEPRECATED = 2,
59 RE_ENABLE_PROMPT, 59 RE_ENABLE_PROMPT = 3,
60 PERMISSIONS_PROMPT, 60 PERMISSIONS_PROMPT = 4,
61 EXTERNAL_INSTALL_PROMPT, 61 EXTERNAL_INSTALL_PROMPT = 5,
62 POST_INSTALL_PERMISSIONS_PROMPT, 62 POST_INSTALL_PERMISSIONS_PROMPT = 6,
63 LAUNCH_PROMPT_DEPRECATED, 63 // LAUNCH_PROMPT_DEPRECATED = 7,
64 REMOTE_INSTALL_PROMPT, 64 REMOTE_INSTALL_PROMPT = 8,
65 REPAIR_PROMPT, 65 REPAIR_PROMPT = 9,
66 DELEGATED_PERMISSIONS_PROMPT, 66 DELEGATED_PERMISSIONS_PROMPT = 10,
67 DELEGATED_BUNDLE_PERMISSIONS_PROMPT_DEPRECATED, 67 // DELEGATED_BUNDLE_PERMISSIONS_PROMPT_DEPRECATED = 11,
68 NUM_PROMPT_TYPES 68 NUM_PROMPT_TYPES = 12,
69 }; 69 };
70 70
71 // The last prompt type to display; only used for testing. 71 // The last prompt type to display; only used for testing.
72 static PromptType g_last_prompt_type_for_tests; 72 static PromptType g_last_prompt_type_for_tests;
73 73
74 // Enumeration for permissions and retained files details. 74 // Enumeration for permissions and retained files details.
75 enum DetailsType { 75 enum DetailsType {
76 PERMISSIONS_DETAILS = 0, 76 PERMISSIONS_DETAILS = 0,
77 WITHHELD_PERMISSIONS_DETAILS, 77 WITHHELD_PERMISSIONS_DETAILS,
78 RETAINED_FILES_DETAILS, 78 RETAINED_FILES_DETAILS,
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 383
384 // Whether or not the |show_dialog_callback_| was called. 384 // Whether or not the |show_dialog_callback_| was called.
385 bool did_call_show_dialog_; 385 bool did_call_show_dialog_;
386 386
387 base::WeakPtrFactory<ExtensionInstallPrompt> weak_factory_; 387 base::WeakPtrFactory<ExtensionInstallPrompt> weak_factory_;
388 388
389 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallPrompt); 389 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallPrompt);
390 }; 390 };
391 391
392 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 392 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698