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

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

Issue 4727001: Split the private webstore install API into two parts.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 public: 46 public:
47 47
48 // This is pretty lame, but given the difficulty of connecting a particular 48 // This is pretty lame, but given the difficulty of connecting a particular
49 // ExtensionFunction to a resulting download in the download manager, it's 49 // ExtensionFunction to a resulting download in the download manager, it's
50 // currently necessary. This is the |id| of an extension to be installed 50 // currently necessary. This is the |id| of an extension to be installed
51 // *by the web store only* which should not get the permissions install 51 // *by the web store only* which should not get the permissions install
52 // prompt. This should only be called on the UI thread. 52 // prompt. This should only be called on the UI thread.
53 // crbug.com/54916 53 // crbug.com/54916
54 static void SetWhitelistedInstallId(const std::string& id); 54 static void SetWhitelistedInstallId(const std::string& id);
55 55
56 // Returns whether |id| is whitelisted - only call this on the UI thread.
57 static bool IsIdWhitelisted(const std::string& id);
58
56 // Returns whether |id| was found and removed (was whitelisted). This should 59 // Returns whether |id| was found and removed (was whitelisted). This should
57 // only be called on the UI thread. 60 // only be called on the UI thread.
58 static bool ClearWhitelistedInstallId(const std::string& id); 61 static bool ClearWhitelistedInstallId(const std::string& id);
59 62
60 // Constructor. Extensions will be unpacked to |install_directory|. 63 // Constructor. Extensions will be unpacked to |install_directory|.
61 // Extension objects will be sent to |frontend|, and any UI will be shown 64 // Extension objects will be sent to |frontend|, and any UI will be shown
62 // via |client|. For silent install, pass NULL for |client|. 65 // via |client|. For silent install, pass NULL for |client|.
63 CrxInstaller(const FilePath& install_directory, 66 CrxInstaller(const FilePath& install_directory,
64 ExtensionsService* frontend, 67 ExtensionsService* frontend,
65 ExtensionInstallUI* client); 68 ExtensionInstallUI* client);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 bool allow_silent_install_; 229 bool allow_silent_install_;
227 230
228 // The value of the content type header sent with the CRX. 231 // The value of the content type header sent with the CRX.
229 // Ignorred unless |require_extension_mime_type_| is true. 232 // Ignorred unless |require_extension_mime_type_| is true.
230 std::string original_mime_type_; 233 std::string original_mime_type_;
231 234
232 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 235 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
233 }; 236 };
234 237
235 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 238 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer.cc » ('j') | chrome/browser/extensions/crx_installer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698