| 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/test/test_extensions_client.h" | 5 #include "extensions/test/test_extensions_client.h" |
| 6 | 6 |
| 7 #include "extensions/common/common_manifest_handlers.h" | 7 #include "extensions/common/common_manifest_handlers.h" |
| 8 #include "extensions/common/features/base_feature_provider.h" | 8 #include "extensions/common/features/base_feature_provider.h" |
| 9 #include "extensions/common/manifest_handler.h" | 9 #include "extensions/common/manifest_handler.h" |
| 10 #include "extensions/test/test_permission_message_provider.h" | 10 #include "extensions/test/test_permission_message_provider.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 static TestPermissionsProvider provider; | 32 static TestPermissionsProvider provider; |
| 33 return provider; | 33 return provider; |
| 34 } | 34 } |
| 35 | 35 |
| 36 const PermissionMessageProvider& | 36 const PermissionMessageProvider& |
| 37 TestExtensionsClient::GetPermissionMessageProvider() const { | 37 TestExtensionsClient::GetPermissionMessageProvider() const { |
| 38 static TestPermissionMessageProvider provider; | 38 static TestPermissionMessageProvider provider; |
| 39 return provider; | 39 return provider; |
| 40 } | 40 } |
| 41 | 41 |
| 42 FeatureProvider* TestExtensionsClient::GetFeatureProviderByName( | 42 // TODO(yoz): Implement something reasonable here. |
| 43 scoped_ptr<FeatureProvider> TestExtensionsClient::CreateFeatureProvider( |
| 43 const std::string& name) const { | 44 const std::string& name) const { |
| 44 return BaseFeatureProvider::GetByName(name); | 45 return scoped_ptr<FeatureProvider>(); |
| 45 } | 46 } |
| 46 | 47 |
| 47 void TestExtensionsClient::FilterHostPermissions( | 48 void TestExtensionsClient::FilterHostPermissions( |
| 48 const URLPatternSet& hosts, | 49 const URLPatternSet& hosts, |
| 49 URLPatternSet* new_hosts, | 50 URLPatternSet* new_hosts, |
| 50 std::set<PermissionMessage>* messages) const { | 51 std::set<PermissionMessage>* messages) const { |
| 51 } | 52 } |
| 52 | 53 |
| 53 void TestExtensionsClient::SetScriptingWhitelist( | 54 void TestExtensionsClient::SetScriptingWhitelist( |
| 54 const ExtensionsClient::ScriptingWhitelist& whitelist) { | 55 const ExtensionsClient::ScriptingWhitelist& whitelist) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 75 bool TestExtensionsClient::IsAPISchemaGenerated( | 76 bool TestExtensionsClient::IsAPISchemaGenerated( |
| 76 const std::string& name) const { | 77 const std::string& name) const { |
| 77 return false; | 78 return false; |
| 78 } | 79 } |
| 79 | 80 |
| 80 base::StringPiece TestExtensionsClient::GetAPISchema( | 81 base::StringPiece TestExtensionsClient::GetAPISchema( |
| 81 const std::string& name) const { | 82 const std::string& name) const { |
| 82 return base::StringPiece(); | 83 return base::StringPiece(); |
| 83 } | 84 } |
| 84 | 85 |
| 85 void TestExtensionsClient::AddExtraFeatureFilters( | |
| 86 SimpleFeature* feature) const { | |
| 87 } | |
| 88 | |
| 89 bool TestExtensionsClient::ShouldSuppressFatalErrors() const { | 86 bool TestExtensionsClient::ShouldSuppressFatalErrors() const { |
| 90 return true; | 87 return true; |
| 91 } | 88 } |
| 92 | 89 |
| 93 } // namespace extensions | 90 } // namespace extensions |
| OLD | NEW |