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

Side by Side Diff: extensions/browser/updater/update_service.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_UPDATE_SERVICE_H_ 5 #ifndef EXTENSIONS_BROWSER_UPDATER_UPDATE_SERVICE_H_
6 #define EXTENSIONS_BROWSER_UPDATER_UPDATE_SERVICE_H_ 6 #define EXTENSIONS_BROWSER_UPDATER_UPDATE_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 30 matching lines...) Expand all
41 friend class UpdateServiceTest; 41 friend class UpdateServiceTest;
42 42
43 explicit UpdateService(content::BrowserContext* context); 43 explicit UpdateService(content::BrowserContext* context);
44 ~UpdateService() override; 44 ~UpdateService() override;
45 45
46 // ExtensionDownloaderDelegate: 46 // ExtensionDownloaderDelegate:
47 void OnExtensionDownloadFailed(const std::string& id, 47 void OnExtensionDownloadFailed(const std::string& id,
48 Error error, 48 Error error,
49 const PingResult& ping, 49 const PingResult& ping,
50 const std::set<int>& request_ids) override; 50 const std::set<int>& request_ids) override;
51 void OnExtensionDownloadFinished(const std::string& id, 51 void OnExtensionDownloadFinished(const CRXFileInfo& file,
52 const base::FilePath& path,
53 bool file_ownership_passed, 52 bool file_ownership_passed,
54 const GURL& download_url, 53 const GURL& download_url,
55 const std::string& version, 54 const std::string& version,
56 const PingResult& ping, 55 const PingResult& ping,
57 const std::set<int>& request_id) override; 56 const std::set<int>& request_id) override;
58 bool IsExtensionPending(const std::string& id) override; 57 bool IsExtensionPending(const std::string& id) override;
59 bool GetExtensionExistingVersion(const std::string& id, 58 bool GetExtensionExistingVersion(const std::string& id,
60 std::string* version) override; 59 std::string* version) override;
61 60
62 content::BrowserContext* browser_context_; 61 content::BrowserContext* browser_context_;
63 scoped_ptr<ExtensionDownloader> downloader_; 62 scoped_ptr<ExtensionDownloader> downloader_;
64 base::Callback<void(bool)> download_callback_; 63 base::Callback<void(bool)> download_callback_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(UpdateService); 65 DISALLOW_COPY_AND_ASSIGN(UpdateService);
67 }; 66 };
68 67
69 } // namespace extensions 68 } // namespace extensions
70 69
71 #endif // EXTENSIONS_BROWSER_UPDATER_UPDATE_SERVICE_H_ 70 #endif // EXTENSIONS_BROWSER_UPDATER_UPDATE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698