| Index: chrome/common/extensions/api/extension_api.h
|
| diff --git a/chrome/common/extensions/api/extension_api.h b/chrome/common/extensions/api/extension_api.h
|
| index b1aa0cb14a8add24e204e7446f430fd13906d20e..68bb3a92f4ca74aee5c050462a029a2a217bb9a7 100644
|
| --- a/chrome/common/extensions/api/extension_api.h
|
| +++ b/chrome/common/extensions/api/extension_api.h
|
| @@ -10,6 +10,7 @@
|
| #include <string>
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/callback.h"
|
| #include "base/memory/linked_ptr.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/singleton.h"
|
| @@ -61,8 +62,8 @@ class ExtensionAPI {
|
| ExtensionAPI();
|
| virtual ~ExtensionAPI();
|
|
|
| - void RegisterSchema(const std::string& api_name,
|
| - const base::StringPiece& source);
|
| + void RegisterSchema(const std::string& api_name, int resource_id);
|
| + void RegisterGeneratedSchema(const std::string& name);
|
|
|
| void RegisterDependencyProvider(const std::string& name,
|
| FeatureProvider* provider);
|
| @@ -146,7 +147,8 @@ class ExtensionAPI {
|
|
|
| // Map from each API that hasn't been loaded yet to the schema which defines
|
| // it. Note that there may be multiple APIs per schema.
|
| - typedef std::map<std::string, base::StringPiece> UnloadedSchemaMap;
|
| + typedef std::map<std::string, base::Callback<base::StringPiece()> >
|
| + UnloadedSchemaMap;
|
| UnloadedSchemaMap unloaded_schemas_;
|
|
|
| // Schemas for each namespace.
|
|
|