summaryrefslogtreecommitdiffstats
path: root/extensions/common/extensions_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/common/extensions_client.h')
-rw-r--r--extensions/common/extensions_client.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/common/extensions_client.h b/extensions/common/extensions_client.h
index d309fd7..843f985 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();