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

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

Issue 8430033: Adds a webstorePrivate method for silently installing extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mihai Created 9 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
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 struct WhitelistEntry { 68 struct WhitelistEntry {
69 WhitelistEntry(); 69 WhitelistEntry();
70 ~WhitelistEntry(); 70 ~WhitelistEntry();
71 71
72 scoped_ptr<base::DictionaryValue> parsed_manifest; 72 scoped_ptr<base::DictionaryValue> parsed_manifest;
73 std::string localized_name; 73 std::string localized_name;
74 74
75 // Whether to use a bubble notification when an app is installed, instead of 75 // Whether to use a bubble notification when an app is installed, instead of
76 // the default behavior of transitioning to the new tab page. 76 // the default behavior of transitioning to the new tab page.
77 bool use_app_installed_bubble; 77 bool use_app_installed_bubble;
78
79 // Whether to skip the post install UI like the extension installed bubble.
80 bool skip_post_install_ui;
78 }; 81 };
79 82
80 // Exempt the next extension install with |id| from displaying a confirmation 83 // Exempt the next extension install with |id| from displaying a confirmation
81 // prompt, since the user already agreed to the install via 84 // prompt, since the user already agreed to the install via
82 // beginInstallWithManifest3. We require that the extension manifest matches 85 // beginInstallWithManifest3. We require that the extension manifest matches
83 // the manifest in |entry|, which is what was used to prompt with. Ownership 86 // the manifest in |entry|, which is what was used to prompt with. Ownership
84 // of |entry| is transferred here. 87 // of |entry| is transferred here.
85 static void SetWhitelistEntry(const std::string& id, WhitelistEntry* entry); 88 static void SetWhitelistEntry(const std::string& id, WhitelistEntry* entry);
86 89
87 // Returns the previously stored manifest from a call to SetWhitelistEntry. 90 // Returns the previously stored manifest from a call to SetWhitelistEntry.
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 extension_misc::CrxInstallCause install_cause_; 325 extension_misc::CrxInstallCause install_cause_;
323 326
324 // Creation flags to use for the extension. These flags will be used 327 // Creation flags to use for the extension. These flags will be used
325 // when calling Extenion::Create() by the crx installer. 328 // when calling Extenion::Create() by the crx installer.
326 int creation_flags_; 329 int creation_flags_;
327 330
328 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 331 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
329 }; 332 };
330 333
331 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 334 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698