Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Unified Diff: extensions/common/extensions_client.h

Issue 183893041: Move sockets APIs out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename api targets Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/extension_api.cc ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « extensions/common/extension_api.cc ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698