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

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

Issue 536753003: Add recommended extension installation support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-3
Patch Set: rebase Created 6 years, 2 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 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_EXTENSION_MANAGEMENT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_
7 7
8 #include "base/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // from the command line, or when loaded as an unpacked extension). 77 // from the command line, or when loaded as an unpacked extension).
78 bool BlacklistedByDefault() const; 78 bool BlacklistedByDefault() const;
79 79
80 // Returns installation mode for an extension. 80 // Returns installation mode for an extension.
81 InstallationMode GetInstallationMode(const ExtensionId& id) const; 81 InstallationMode GetInstallationMode(const ExtensionId& id) const;
82 82
83 // Returns the force install list, in format specified by 83 // Returns the force install list, in format specified by
84 // ExternalPolicyLoader::AddExtension(). 84 // ExternalPolicyLoader::AddExtension().
85 scoped_ptr<base::DictionaryValue> GetForceInstallList() const; 85 scoped_ptr<base::DictionaryValue> GetForceInstallList() const;
86 86
87 // Like GetRecommendedInstallList(), but returns recommended install list
88 // instead.
Finnur 2014/10/06 14:01:42 I don't get it... GetRecommendedInstallList is li
binjin 2014/10/06 18:48:47 Ooops, it's a mistake due to auto-completion. Done
89 scoped_ptr<base::DictionaryValue> GetRecommendedInstallList() const;
90
87 // Returns if an extension with id |id| is allowed to install or not. 91 // Returns if an extension with id |id| is allowed to install or not.
88 bool IsInstallationAllowed(const ExtensionId& id) const; 92 bool IsInstallationAllowed(const ExtensionId& id) const;
89 93
90 // Returns true if an extension download should be allowed to proceed. 94 // Returns true if an extension download should be allowed to proceed.
91 bool IsOffstoreInstallAllowed(const GURL& url, 95 bool IsOffstoreInstallAllowed(const GURL& url,
92 const GURL& referrer_url) const; 96 const GURL& referrer_url) const;
93 97
94 // Returns true if an extension with manifest type |manifest_type| is 98 // Returns true if an extension with manifest type |manifest_type| is
95 // allowed to be installed. 99 // allowed to be installed.
96 bool IsAllowedManifestType(Manifest::Type manifest_type) const; 100 bool IsAllowedManifestType(Manifest::Type manifest_type) const;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 content::BrowserContext* context) const override; 177 content::BrowserContext* context) const override;
174 virtual void RegisterProfilePrefs( 178 virtual void RegisterProfilePrefs(
175 user_prefs::PrefRegistrySyncable* registry) override; 179 user_prefs::PrefRegistrySyncable* registry) override;
176 180
177 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementFactory); 181 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementFactory);
178 }; 182 };
179 183
180 } // namespace extensions 184 } // namespace extensions
181 185
182 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ 186 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698