| OLD | NEW |
| 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 #include "extensions/shell/common/shell_extensions_client.h" | 5 #include "extensions/shell/common/shell_extensions_client.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "extensions/common/api/generated_schemas.h" | 9 #include "extensions/common/api/generated_schemas.h" |
| 10 #include "extensions/common/common_manifest_handlers.h" | 10 #include "extensions/common/common_manifest_handlers.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 // TODO(jamescook): Refactor ChromePermissionsMessageProvider so we can share | 37 // TODO(jamescook): Refactor ChromePermissionsMessageProvider so we can share |
| 38 // code. For now, this implementation does nothing. | 38 // code. For now, this implementation does nothing. |
| 39 class ShellPermissionMessageProvider : public PermissionMessageProvider { | 39 class ShellPermissionMessageProvider : public PermissionMessageProvider { |
| 40 public: | 40 public: |
| 41 ShellPermissionMessageProvider() {} | 41 ShellPermissionMessageProvider() {} |
| 42 ~ShellPermissionMessageProvider() override {} | 42 ~ShellPermissionMessageProvider() override {} |
| 43 | 43 |
| 44 // PermissionMessageProvider implementation. | 44 // PermissionMessageProvider implementation. |
| 45 PermissionMessageStrings GetPermissionMessageStrings( | |
| 46 const PermissionSet* permissions, | |
| 47 Manifest::Type extension_type) const override { | |
| 48 return PermissionMessageStrings(); | |
| 49 } | |
| 50 | |
| 51 PermissionMessageIDs GetLegacyPermissionMessageIDs( | 45 PermissionMessageIDs GetLegacyPermissionMessageIDs( |
| 52 const PermissionSet* permissions, | 46 const PermissionSet* permissions, |
| 53 Manifest::Type extension_type) const override { | 47 Manifest::Type extension_type) const override { |
| 54 return PermissionMessageIDs(); | 48 return PermissionMessageIDs(); |
| 55 } | 49 } |
| 56 | 50 |
| 57 CoalescedPermissionMessages GetCoalescedPermissionMessages( | 51 CoalescedPermissionMessages GetCoalescedPermissionMessages( |
| 58 const PermissionIDSet& permissions) const override { | 52 const PermissionIDSet& permissions) const override { |
| 59 return CoalescedPermissionMessages(); | 53 return CoalescedPermissionMessages(); |
| 60 } | 54 } |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 return extension_urls::kChromeWebstoreUpdateURL; | 227 return extension_urls::kChromeWebstoreUpdateURL; |
| 234 } | 228 } |
| 235 | 229 |
| 236 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { | 230 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { |
| 237 // TODO(rockot): Maybe we want to do something else here. For now we accept | 231 // TODO(rockot): Maybe we want to do something else here. For now we accept |
| 238 // any URL as a blacklist URL because we don't really care. | 232 // any URL as a blacklist URL because we don't really care. |
| 239 return true; | 233 return true; |
| 240 } | 234 } |
| 241 | 235 |
| 242 } // namespace extensions | 236 } // namespace extensions |
| OLD | NEW |