| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 } else { | 135 } else { |
| 136 NOTREACHED(); | 136 NOTREACHED(); |
| 137 source.reset(); | 137 source.reset(); |
| 138 } | 138 } |
| 139 return source.Pass(); | 139 return source.Pass(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void ShellExtensionsClient::FilterHostPermissions( | 142 void ShellExtensionsClient::FilterHostPermissions( |
| 143 const URLPatternSet& hosts, | 143 const URLPatternSet& hosts, |
| 144 URLPatternSet* new_hosts, | 144 URLPatternSet* new_hosts, |
| 145 std::set<PermissionMessage>* messages) const { | |
| 146 NOTIMPLEMENTED(); | |
| 147 } | |
| 148 | |
| 149 void ShellExtensionsClient::FilterHostPermissions( | |
| 150 const URLPatternSet& hosts, | |
| 151 URLPatternSet* new_hosts, | |
| 152 PermissionIDSet* permissions) const { | 145 PermissionIDSet* permissions) const { |
| 153 NOTIMPLEMENTED(); | 146 NOTIMPLEMENTED(); |
| 154 } | 147 } |
| 155 | 148 |
| 156 void ShellExtensionsClient::SetScriptingWhitelist( | 149 void ShellExtensionsClient::SetScriptingWhitelist( |
| 157 const ScriptingWhitelist& whitelist) { | 150 const ScriptingWhitelist& whitelist) { |
| 158 scripting_whitelist_ = whitelist; | 151 scripting_whitelist_ = whitelist; |
| 159 } | 152 } |
| 160 | 153 |
| 161 const ExtensionsClient::ScriptingWhitelist& | 154 const ExtensionsClient::ScriptingWhitelist& |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 return extension_urls::kChromeWebstoreUpdateURL; | 205 return extension_urls::kChromeWebstoreUpdateURL; |
| 213 } | 206 } |
| 214 | 207 |
| 215 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { | 208 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { |
| 216 // TODO(rockot): Maybe we want to do something else here. For now we accept | 209 // TODO(rockot): Maybe we want to do something else here. For now we accept |
| 217 // any URL as a blacklist URL because we don't really care. | 210 // any URL as a blacklist URL because we don't really care. |
| 218 return true; | 211 return true; |
| 219 } | 212 } |
| 220 | 213 |
| 221 } // namespace extensions | 214 } // namespace extensions |
| OLD | NEW |