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

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

Issue 540673002: Enable forced extension updates on NaCl arch mismatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kill stale comment Created 6 years, 3 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
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
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual std::string GetUpdateUrlData(const std::string& id); 104 virtual std::string GetUpdateUrlData(const std::string& id);
105 105
106 // Invoked to determine whether extension |id| is currently 106 // Invoked to determine whether extension |id| is currently
107 // pending installation. 107 // pending installation.
108 virtual bool IsExtensionPending(const std::string& id) = 0; 108 virtual bool IsExtensionPending(const std::string& id) = 0;
109 109
110 // Invoked to get the current version of extension |id|. Returns false if 110 // Invoked to get the current version of extension |id|. Returns false if
111 // that extension is not installed. 111 // that extension is not installed.
112 virtual bool GetExtensionExistingVersion(const std::string& id, 112 virtual bool GetExtensionExistingVersion(const std::string& id,
113 std::string* version) = 0; 113 std::string* version) = 0;
114
115 // Determines if a given extension should be forced to update and (if so)
116 // what the source of this forcing is (i.e. what string will be passed
117 // in |installsource| as part of the update query parameters).
118 virtual bool ShouldForceUpdate(const std::string& id,
119 std::string* source) = 0;
114 }; 120 };
115 121
116 } // namespace extensions 122 } // namespace extensions
117 123
118 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ 124 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698