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

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: . 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 struct WhitelistEntry { 61 struct WhitelistEntry {
62 WhitelistEntry(); 62 WhitelistEntry();
63 ~WhitelistEntry(); 63 ~WhitelistEntry();
64 64
65 scoped_ptr<base::DictionaryValue> parsed_manifest; 65 scoped_ptr<base::DictionaryValue> parsed_manifest;
66 std::string localized_name; 66 std::string localized_name;
67 67
68 // Whether to use a bubble notification when an app is installed, instead of 68 // Whether to use a bubble notification when an app is installed, instead of
69 // the default behavior of transitioning to the new tab page. 69 // the default behavior of transitioning to the new tab page.
70 bool use_app_installed_bubble; 70 bool use_app_installed_bubble;
71
72 // Whether to skip the post install UI like the extension installed bubble.
73 bool skip_post_install_ui;
71 }; 74 };
72 75
73 // Exempt the next extension install with |id| from displaying a confirmation 76 // Exempt the next extension install with |id| from displaying a confirmation
74 // prompt, since the user already agreed to the install via 77 // prompt, since the user already agreed to the install via
75 // beginInstallWithManifest3. We require that the extension manifest matches 78 // beginInstallWithManifest3. We require that the extension manifest matches
76 // the manifest in |entry|, which is what was used to prompt with. Ownership 79 // the manifest in |entry|, which is what was used to prompt with. Ownership
77 // of |entry| is transferred here. 80 // of |entry| is transferred here.
78 static void SetWhitelistEntry(const std::string& id, WhitelistEntry* entry); 81 static void SetWhitelistEntry(const std::string& id, WhitelistEntry* entry);
79 82
80 // Returns the previously stored manifest from a call to SetWhitelistEntry. 83 // Returns the previously stored manifest from a call to SetWhitelistEntry.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 extension_misc::CrxInstallCause install_cause_; 321 extension_misc::CrxInstallCause install_cause_;
319 322
320 // Creation flags to use for the extension. These flags will be used 323 // Creation flags to use for the extension. These flags will be used
321 // when calling Extenion::Create() by the crx installer. 324 // when calling Extenion::Create() by the crx installer.
322 int creation_flags_; 325 int creation_flags_;
323 326
324 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 327 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
325 }; 328 };
326 329
327 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 330 #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/extension_install_ui.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698