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

Side by Side Diff: chrome/browser/extensions/crx_installer.h

Issue 829583002: Validate hash_sha256 checksum on .crx update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittest build for windows. 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) 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_CRX_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // Same as the previous method, except use the |approval| to bypass the 92 // Same as the previous method, except use the |approval| to bypass the
93 // prompt. Note that the caller retains ownership of |approval|. 93 // prompt. Note that the caller retains ownership of |approval|.
94 static scoped_refptr<CrxInstaller> Create( 94 static scoped_refptr<CrxInstaller> Create(
95 ExtensionService* service, 95 ExtensionService* service,
96 scoped_ptr<ExtensionInstallPrompt> client, 96 scoped_ptr<ExtensionInstallPrompt> client,
97 const WebstoreInstaller::Approval* approval); 97 const WebstoreInstaller::Approval* approval);
98 98
99 // Install the crx in |source_file|. 99 // Install the crx in |source_file|.
100 void InstallCrx(const base::FilePath& source_file); 100 void InstallCrx(const base::FilePath& source_file);
101 void InstallCrxFile(const CRXFileInfo& source_file);
101 102
102 // Convert the specified user script into an extension and install it. 103 // Convert the specified user script into an extension and install it.
103 void InstallUserScript(const base::FilePath& source_file, 104 void InstallUserScript(const base::FilePath& source_file,
104 const GURL& download_url); 105 const GURL& download_url);
105 106
106 // Convert the specified web app into an extension and install it. 107 // Convert the specified web app into an extension and install it.
107 void InstallWebApp(const WebApplicationInfo& web_app); 108 void InstallWebApp(const WebApplicationInfo& web_app);
108 109
109 // Overridden from ExtensionInstallPrompt::Delegate: 110 // Overridden from ExtensionInstallPrompt::Delegate:
110 void InstallUIProceed() override; 111 void InstallUIProceed() override;
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 420
420 // Performs requirements, policy and blacklist checks on the extension. 421 // Performs requirements, policy and blacklist checks on the extension.
421 ExtensionInstallChecker install_checker_; 422 ExtensionInstallChecker install_checker_;
422 423
423 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 424 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
424 }; 425 };
425 426
426 } // namespace extensions 427 } // namespace extensions
427 428
428 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 429 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/external_cache_unittest.cc ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698