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

Unified Diff: extensions/common/extensions_client.h

Issue 296133011: Move extension API schema registration to ExtensionsClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ifdefs =( Created 6 years, 7 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/test/test_extensions_client.h » ('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 f0bdc8c4caee61bc4427d08086ae1cca38307b2e..9f4ebf92a9e847262c50d598a6d5f8396e111618 100644
--- a/extensions/common/extensions_client.h
+++ b/extensions/common/extensions_client.h
@@ -18,6 +18,7 @@ namespace extensions {
class APIPermissionSet;
class Extension;
+class ExtensionAPI;
class FeatureProvider;
class JSONFeatureProviderSource;
class ManifestPermissionSet;
@@ -82,9 +83,13 @@ class ExtensionsClient {
// Returns true iff a schema named |name| is generated.
virtual bool IsAPISchemaGenerated(const std::string& name) const = 0;
- // Gets the API schema named |name|.
+ // Gets the generated API schema named |name|.
virtual base::StringPiece GetAPISchema(const std::string& name) const = 0;
+ // Register non-generated API schema resources with the global ExtensionAPI.
+ // Called when the ExtensionAPI is lazily initialized.
+ virtual void RegisterAPISchemaResources(ExtensionAPI* api) const = 0;
+
// Determines if certain fatal extensions errors should be surpressed
// (i.e., only logged) or allowed (i.e., logged before crashing).
virtual bool ShouldSuppressFatalErrors() const = 0;
« no previous file with comments | « extensions/common/extension_api.cc ('k') | extensions/test/test_extensions_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698