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

Side by Side Diff: chrome/browser/chromeos/extensions/external_cache.h

Issue 829583002: Validate hash_sha256 checksum on .crx update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix histogram value. Created 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void Observe(int type, 84 void Observe(int type,
85 const content::NotificationSource& source, 85 const content::NotificationSource& source,
86 const content::NotificationDetails& details) override; 86 const content::NotificationDetails& details) override;
87 87
88 // Implementation of ExtensionDownloaderDelegate: 88 // Implementation of ExtensionDownloaderDelegate:
89 void OnExtensionDownloadFailed(const std::string& id, 89 void OnExtensionDownloadFailed(const std::string& id,
90 Error error, 90 Error error,
91 const PingResult& ping_result, 91 const PingResult& ping_result,
92 const std::set<int>& request_ids) override; 92 const std::set<int>& request_ids) override;
93 93
94 void OnExtensionDownloadFinished(const std::string& id, 94 void OnExtensionDownloadFinished(const extensions::CRXFileInfo& file,
95 const base::FilePath& path,
96 bool file_ownership_passed, 95 bool file_ownership_passed,
97 const GURL& download_url, 96 const GURL& download_url,
98 const std::string& version, 97 const std::string& version,
99 const PingResult& ping_result, 98 const PingResult& ping_result,
100 const std::set<int>& request_ids) override; 99 const std::set<int>& request_ids) override;
101 100
102 bool IsExtensionPending(const std::string& id) override; 101 bool IsExtensionPending(const std::string& id) override;
103 102
104 bool GetExtensionExistingVersion(const std::string& id, 103 bool GetExtensionExistingVersion(const std::string& id,
105 std::string* version) override; 104 std::string* version) override;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 186
188 // Weak factory for callbacks. 187 // Weak factory for callbacks.
189 base::WeakPtrFactory<ExternalCache> weak_ptr_factory_; 188 base::WeakPtrFactory<ExternalCache> weak_ptr_factory_;
190 189
191 DISALLOW_COPY_AND_ASSIGN(ExternalCache); 190 DISALLOW_COPY_AND_ASSIGN(ExternalCache);
192 }; 191 };
193 192
194 } // namespace chromeos 193 } // namespace chromeos
195 194
196 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_ 195 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698