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

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

Issue 353493002: Apps&Extensions for supervised users: Add Extension::WAS_INSTALLED_BY_CUSTODIAN flag and proto entry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 | Annotate | Revision Log
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 CHROME_BROWSER_EXTENSIONS_PENDING_EXTENSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_PENDING_EXTENSION_MANAGER_H_
6 #define CHROME_BROWSER_EXTENSIONS_PENDING_EXTENSION_MANAGER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_PENDING_EXTENSION_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // sync installs (such as a policy extension) or if the extension 72 // sync installs (such as a policy extension) or if the extension
73 // is already installed. 73 // is already installed.
74 // 74 //
75 // TODO(akalin): Replace |install_silently| with a list of 75 // TODO(akalin): Replace |install_silently| with a list of
76 // pre-enabled permissions. 76 // pre-enabled permissions.
77 bool AddFromSync( 77 bool AddFromSync(
78 const std::string& id, 78 const std::string& id,
79 const GURL& update_url, 79 const GURL& update_url,
80 PendingExtensionInfo::ShouldAllowInstallPredicate should_allow_install, 80 PendingExtensionInfo::ShouldAllowInstallPredicate should_allow_install,
81 bool install_silently, 81 bool install_silently,
82 bool remote_install); 82 bool remote_install,
83 bool installed_by_custodian);
83 84
84 // Adds an extension that was depended on by another extension. 85 // Adds an extension that was depended on by another extension.
85 bool AddFromExtensionImport( 86 bool AddFromExtensionImport(
86 const std::string& id, 87 const std::string& id,
87 const GURL& update_url, 88 const GURL& update_url,
88 PendingExtensionInfo::ShouldAllowInstallPredicate should_allow_install); 89 PendingExtensionInfo::ShouldAllowInstallPredicate should_allow_install);
89 90
90 // Given an extension id and an update URL, schedule the extension 91 // Given an extension id and an update URL, schedule the extension
91 // to be fetched, installed, and activated. 92 // to be fetched, installed, and activated.
92 bool AddFromExternalUpdateUrl(const std::string& id, 93 bool AddFromExternalUpdateUrl(const std::string& id,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 friend void SetupPendingExtensionManagerForTest( 147 friend void SetupPendingExtensionManagerForTest(
147 int count, const GURL& update_url, 148 int count, const GURL& update_url,
148 PendingExtensionManager* pending_extension_manager); 149 PendingExtensionManager* pending_extension_manager);
149 150
150 DISALLOW_COPY_AND_ASSIGN(PendingExtensionManager); 151 DISALLOW_COPY_AND_ASSIGN(PendingExtensionManager);
151 }; 152 };
152 153
153 } // namespace extensions 154 } // namespace extensions
154 155
155 #endif // CHROME_BROWSER_EXTENSIONS_PENDING_EXTENSION_MANAGER_H_ 156 #endif // CHROME_BROWSER_EXTENSIONS_PENDING_EXTENSION_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sync_service.cc ('k') | chrome/browser/extensions/pending_extension_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698