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_CRX_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // prompt. This should only be called on the UI thread. | 54 // prompt. This should only be called on the UI thread. |
55 // crbug.com/54916 | 55 // crbug.com/54916 |
56 static void SetWhitelistedInstallId(const std::string& id); | 56 static void SetWhitelistedInstallId(const std::string& id); |
57 | 57 |
58 struct WhitelistEntry { | 58 struct WhitelistEntry { |
59 WhitelistEntry(); | 59 WhitelistEntry(); |
60 ~WhitelistEntry(); | 60 ~WhitelistEntry(); |
61 | 61 |
62 scoped_ptr<base::DictionaryValue> parsed_manifest; | 62 scoped_ptr<base::DictionaryValue> parsed_manifest; |
63 std::string localized_name; | 63 std::string localized_name; |
| 64 |
| 65 // Whether to use a bubble notification when an app is installed, instead of |
| 66 // the default behavior of transitioning to the new tab page. |
| 67 bool use_app_installed_bubble; |
64 }; | 68 }; |
65 | 69 |
66 // Exempt the next extension install with |id| from displaying a confirmation | 70 // Exempt the next extension install with |id| from displaying a confirmation |
67 // prompt, since the user already agreed to the install via | 71 // prompt, since the user already agreed to the install via |
68 // beginInstallWithManifest. We require that the extension manifest matches | 72 // beginInstallWithManifest. We require that the extension manifest matches |
69 // the manifest in |entry|, which is what was used to prompt with. Ownership | 73 // the manifest in |entry|, which is what was used to prompt with. Ownership |
70 // of |entry| is transferred here. | 74 // of |entry| is transferred here. |
71 static void SetWhitelistEntry(const std::string& id, WhitelistEntry* entry); | 75 static void SetWhitelistEntry(const std::string& id, WhitelistEntry* entry); |
72 | 76 |
73 // Returns the previously stored manifest from a call to SetWhitelistEntry. | 77 // Returns the previously stored manifest from a call to SetWhitelistEntry. |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 std::string original_mime_type_; | 283 std::string original_mime_type_; |
280 | 284 |
281 // What caused this install? Used only for histograms that report | 285 // What caused this install? Used only for histograms that report |
282 // on failure rates, broken down by the cause of the install. | 286 // on failure rates, broken down by the cause of the install. |
283 extension_misc::CrxInstallCause install_cause_; | 287 extension_misc::CrxInstallCause install_cause_; |
284 | 288 |
285 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 289 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
286 }; | 290 }; |
287 | 291 |
288 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 292 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
OLD | NEW |