| 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_WEBSTORE_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 // Whether to skip the post install UI like the extension installed bubble. | 79 // Whether to skip the post install UI like the extension installed bubble. |
| 80 bool skip_post_install_ui; | 80 bool skip_post_install_ui; |
| 81 | 81 |
| 82 // Whether to skip the install dialog once the extension has been downloaded | 82 // Whether to skip the install dialog once the extension has been downloaded |
| 83 // and unpacked. One reason this can be true is that in the normal webstore | 83 // and unpacked. One reason this can be true is that in the normal webstore |
| 84 // installation, the dialog is shown earlier, before any download is done, | 84 // installation, the dialog is shown earlier, before any download is done, |
| 85 // so there's no need to show it again. | 85 // so there's no need to show it again. |
| 86 bool skip_install_dialog; | 86 bool skip_install_dialog; |
| 87 | 87 |
| 88 // Whether we should record an oauth2 grant for the extensions. |
| 89 bool record_oauth2_grant; |
| 90 |
| 88 private: | 91 private: |
| 89 Approval(); | 92 Approval(); |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 // Gets the Approval associated with the |download|, or NULL if there's none. | 95 // Gets the Approval associated with the |download|, or NULL if there's none. |
| 93 // Note that the Approval is owned by |download|. | 96 // Note that the Approval is owned by |download|. |
| 94 static const Approval* GetAssociatedApproval( | 97 static const Approval* GetAssociatedApproval( |
| 95 const content::DownloadItem& download); | 98 const content::DownloadItem& download); |
| 96 | 99 |
| 97 // Creates a WebstoreInstaller for downloading and installing the extension | 100 // Creates a WebstoreInstaller for downloading and installing the extension |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // The DownloadItem is owned by the DownloadManager and is valid from when | 154 // The DownloadItem is owned by the DownloadManager and is valid from when |
| 152 // OnDownloadStarted is called (with no error) until the DownloadItem | 155 // OnDownloadStarted is called (with no error) until the DownloadItem |
| 153 // transitions to state REMOVING. | 156 // transitions to state REMOVING. |
| 154 content::DownloadItem* download_item_; | 157 content::DownloadItem* download_item_; |
| 155 int flags_; | 158 int flags_; |
| 156 scoped_ptr<Approval> approval_; | 159 scoped_ptr<Approval> approval_; |
| 157 GURL download_url_; | 160 GURL download_url_; |
| 158 }; | 161 }; |
| 159 | 162 |
| 160 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ | 163 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ |
| OLD | NEW |