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

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

Issue 10837125: Revert 149794 - DownloadItem::Observer::OnDownloadDestroyed() replaces DownloadItem::REMOVING (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1228/src/
Patch Set: Created 8 years, 4 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) 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 friend struct content::BrowserThread::DeleteOnThread< 130 friend struct content::BrowserThread::DeleteOnThread<
131 content::BrowserThread::UI>; 131 content::BrowserThread::UI>;
132 friend class base::DeleteHelper<WebstoreInstaller>; 132 friend class base::DeleteHelper<WebstoreInstaller>;
133 virtual ~WebstoreInstaller(); 133 virtual ~WebstoreInstaller();
134 134
135 // DownloadManager::DownloadUrl callback. 135 // DownloadManager::DownloadUrl callback.
136 void OnDownloadStarted(content::DownloadId id, net::Error error); 136 void OnDownloadStarted(content::DownloadId id, net::Error error);
137 137
138 // DownloadItem::Observer implementation: 138 // DownloadItem::Observer implementation:
139 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE; 139 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE;
140 virtual void OnDownloadDestroyed(content::DownloadItem* download) OVERRIDE; 140 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE;
141 141
142 // Starts downloading the extension to |file_path|. 142 // Starts downloading the extension to |file_path|.
143 void StartDownload(const FilePath& file_path); 143 void StartDownload(const FilePath& file_path);
144 144
145 // Reports an install |error| to the delegate for the given extension if this 145 // Reports an install |error| to the delegate for the given extension if this
146 // managed its installation. This also removes the associated PendingInstall. 146 // managed its installation. This also removes the associated PendingInstall.
147 void ReportFailure(const std::string& error); 147 void ReportFailure(const std::string& error);
148 148
149 // Reports a successful install to the delegate for the given extension if 149 // Reports a successful install to the delegate for the given extension if
150 // this managed its installation. This also removes the associated 150 // this managed its installation. This also removes the associated
(...skipping 10 matching lines...) Expand all
161 // transitions to state REMOVING. 161 // transitions to state REMOVING.
162 content::DownloadItem* download_item_; 162 content::DownloadItem* download_item_;
163 int flags_; 163 int flags_;
164 scoped_ptr<Approval> approval_; 164 scoped_ptr<Approval> approval_;
165 GURL download_url_; 165 GURL download_url_;
166 }; 166 };
167 167
168 } // namespace extensions 168 } // namespace extensions
169 169
170 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_ 170 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api.cc ('k') | chrome/browser/extensions/webstore_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698