OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Download code which handles CRX files (extensions, themes, apps, ...). | 5 // Download code which handles CRX files (extensions, themes, apps, ...). |
6 | 6 |
7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_ | 7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_ |
8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_ | 8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_ |
9 | 9 |
10 | 10 |
11 #include "base/basictypes.h" | |
12 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
14 | 13 |
15 class ExtensionInstallPrompt; | 14 class ExtensionInstallPrompt; |
16 class Profile; | 15 class Profile; |
17 | 16 |
18 namespace content { | 17 namespace content { |
19 class DownloadItem; | 18 class DownloadItem; |
20 } | 19 } |
21 | 20 |
(...skipping 26 matching lines...) Expand all Loading... |
48 bool IsExtensionDownload(const content::DownloadItem& download_item); | 47 bool IsExtensionDownload(const content::DownloadItem& download_item); |
49 | 48 |
50 // Checks whether an extension download should be allowed to proceed because the | 49 // Checks whether an extension download should be allowed to proceed because the |
51 // installation site is whitelisted in prefs. | 50 // installation site is whitelisted in prefs. |
52 bool OffStoreInstallAllowedByPrefs(Profile* profile, | 51 bool OffStoreInstallAllowedByPrefs(Profile* profile, |
53 const content::DownloadItem& item); | 52 const content::DownloadItem& item); |
54 | 53 |
55 } // namespace download_crx_util | 54 } // namespace download_crx_util |
56 | 55 |
57 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_ | 56 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_ |
OLD | NEW |