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

Side by Side Diff: chrome/browser/extensions/updater/extension_downloader_delegate.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "chrome/browser/extensions/updater/manifest_fetch_data.h" 12 #include "chrome/browser/extensions/updater/manifest_fetch_data.h"
13 13
14 class GURL;
15
16 namespace base {
14 class FilePath; 17 class FilePath;
15 class GURL; 18 }
16 19
17 namespace extensions { 20 namespace extensions {
18 21
19 class ExtensionDownloaderDelegate { 22 class ExtensionDownloaderDelegate {
20 public: 23 public:
21 virtual ~ExtensionDownloaderDelegate(); 24 virtual ~ExtensionDownloaderDelegate();
22 25
23 // Passed as an argument to ExtensionDownloader::OnExtensionDownloadFailed() 26 // Passed as an argument to ExtensionDownloader::OnExtensionDownloadFailed()
24 // to detail the reason for the failure. 27 // to detail the reason for the failure.
25 enum Error { 28 enum Error {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void OnExtensionDownloadFailed(const std::string& id, 76 virtual void OnExtensionDownloadFailed(const std::string& id,
74 Error error, 77 Error error,
75 const PingResult& ping_result, 78 const PingResult& ping_result,
76 const std::set<int>& request_ids); 79 const std::set<int>& request_ids);
77 80
78 // Invoked if the extension had an update available and its crx was 81 // Invoked if the extension had an update available and its crx was
79 // successfully downloaded to |path|. Ownership of that file is transferred 82 // successfully downloaded to |path|. Ownership of that file is transferred
80 // to the delegate. 83 // to the delegate.
81 virtual void OnExtensionDownloadFinished( 84 virtual void OnExtensionDownloadFinished(
82 const std::string& id, 85 const std::string& id,
83 const FilePath& path, 86 const base::FilePath& path,
84 const GURL& download_url, 87 const GURL& download_url,
85 const std::string& version, 88 const std::string& version,
86 const PingResult& ping_result, 89 const PingResult& ping_result,
87 const std::set<int>& request_ids) = 0; 90 const std::set<int>& request_ids) = 0;
88 91
89 // Same as OnExtensionDownloadFinished() but only for the kBlacklistAppID 92 // Same as OnExtensionDownloadFinished() but only for the kBlacklistAppID
90 // extension, which passes different data to the delegate. 93 // extension, which passes different data to the delegate.
91 virtual void OnBlacklistDownloadFinished( 94 virtual void OnBlacklistDownloadFinished(
92 const std::string& data, 95 const std::string& data,
93 const std::string& package_hash, 96 const std::string& package_hash,
(...skipping 20 matching lines...) Expand all
114 117
115 // Invoked to get the current version of extension |id|. Returns false if 118 // Invoked to get the current version of extension |id|. Returns false if
116 // that extension is not installed. 119 // that extension is not installed.
117 virtual bool GetExtensionExistingVersion(const std::string& id, 120 virtual bool GetExtensionExistingVersion(const std::string& id,
118 std::string* version) = 0; 121 std::string* version) = 0;
119 }; 122 };
120 123
121 } // namespace extensions 124 } // namespace extensions
122 125
123 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ 126 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_system.h ('k') | chrome/browser/extensions/webstore_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698