| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ | 5 #ifndef EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ |
| 6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ | 6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 // Returns true iff a schema named |name| is generated. | 77 // Returns true iff a schema named |name| is generated. |
| 78 virtual bool IsAPISchemaGenerated(const std::string& name) const = 0; | 78 virtual bool IsAPISchemaGenerated(const std::string& name) const = 0; |
| 79 | 79 |
| 80 // Gets the API schema named |name|. | 80 // Gets the API schema named |name|. |
| 81 virtual base::StringPiece GetAPISchema(const std::string& name) const = 0; | 81 virtual base::StringPiece GetAPISchema(const std::string& name) const = 0; |
| 82 | 82 |
| 83 // Appends extra filters to any Features created by the features system. | 83 // Appends extra filters to any Features created by the features system. |
| 84 virtual void AddExtraFeatureFilters(SimpleFeature* feature) const = 0; | 84 virtual void AddExtraFeatureFilters(SimpleFeature* feature) const = 0; |
| 85 | 85 |
| 86 // Determines if certain fatal extensions errors should be surpressed |
| 87 // (i.e., only logged) or allowed (i.e., logged before crashing). |
| 88 virtual bool ShouldSuppressFatalErrors() const = 0; |
| 89 |
| 86 // Return the extensions client. | 90 // Return the extensions client. |
| 87 static ExtensionsClient* Get(); | 91 static ExtensionsClient* Get(); |
| 88 | 92 |
| 89 // Initialize the extensions system with this extensions client. | 93 // Initialize the extensions system with this extensions client. |
| 90 static void Set(ExtensionsClient* client); | 94 static void Set(ExtensionsClient* client); |
| 91 }; | 95 }; |
| 92 | 96 |
| 93 } // namespace extensions | 97 } // namespace extensions |
| 94 | 98 |
| 95 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ | 99 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ |
| OLD | NEW |