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 EXTENSIONS_BROWSER_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ | 5 #ifndef EXTENSIONS_BROWSER_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ |
6 #define EXTENSIONS_BROWSER_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ | 6 #define EXTENSIONS_BROWSER_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "extensions/browser/crx_file_info.h" | 13 #include "extensions/browser/crx_file_info.h" |
14 #include "extensions/browser/updater/manifest_fetch_data.h" | 14 #include "extensions/browser/updater/manifest_fetch_data.h" |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 | 17 |
18 namespace base { | |
19 class FilePath; | |
20 } | |
21 | |
22 namespace extensions { | 18 namespace extensions { |
23 | 19 |
24 class ExtensionDownloaderDelegate { | 20 class ExtensionDownloaderDelegate { |
25 public: | 21 public: |
26 virtual ~ExtensionDownloaderDelegate(); | 22 virtual ~ExtensionDownloaderDelegate(); |
27 | 23 |
28 // Passed as an argument to ExtensionDownloader::OnExtensionDownloadFailed() | 24 // Passed as an argument to ExtensionDownloader::OnExtensionDownloadFailed() |
29 // to detail the reason for the failure. | 25 // to detail the reason for the failure. |
30 enum Error { | 26 enum Error { |
31 // Background networking is disabled. | 27 // Background networking is disabled. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 121 |
126 // Invoked to get the current version of extension |id|. Returns false if | 122 // Invoked to get the current version of extension |id|. Returns false if |
127 // that extension is not installed. | 123 // that extension is not installed. |
128 virtual bool GetExtensionExistingVersion(const std::string& id, | 124 virtual bool GetExtensionExistingVersion(const std::string& id, |
129 std::string* version) = 0; | 125 std::string* version) = 0; |
130 }; | 126 }; |
131 | 127 |
132 } // namespace extensions | 128 } // namespace extensions |
133 | 129 |
134 #endif // EXTENSIONS_BROWSER_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ | 130 #endif // EXTENSIONS_BROWSER_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ |
OLD | NEW |