Index: extensions/common/extensions_client.h |
diff --git a/extensions/common/extensions_client.h b/extensions/common/extensions_client.h |
index d309fd7e8084cafd2b757f1d117dc7325e026af5..843f98570f0f0b46735833c61c71454e550121dd 100644 |
--- a/extensions/common/extensions_client.h |
+++ b/extensions/common/extensions_client.h |
@@ -9,6 +9,8 @@ |
#include <string> |
#include <vector> |
+#include "base/strings/string_piece.h" |
+ |
class GURL; |
namespace extensions { |
@@ -71,6 +73,12 @@ class ExtensionsClient { |
// Returns false if content scripts are forbidden from running on |url|. |
virtual bool IsScriptableURL(const GURL& url, std::string* error) const = 0; |
+ // Returns true iff a schema named |name| is generated. |
+ virtual bool IsAPISchemaGenerated(const std::string& name) const = 0; |
+ |
+ // Gets the API schema named |name|. |
+ virtual base::StringPiece GetAPISchema(const std::string& name) const = 0; |
+ |
// Return the extensions client. |
static ExtensionsClient* Get(); |