| Index: chrome/browser/extensions/chrome_extensions_browser_client.h
|
| diff --git a/chrome/browser/extensions/chrome_extensions_browser_client.h b/chrome/browser/extensions/chrome_extensions_browser_client.h
|
| index 0c5d160379c772df6e5e0e4794524c50e8c8d428..9bca501d05b28639d3fe48696e08971f22b5a34b 100644
|
| --- a/chrome/browser/extensions/chrome_extensions_browser_client.h
|
| +++ b/chrome/browser/extensions/chrome_extensions_browser_client.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
|
| #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
|
|
|
| +#include <map>
|
| +
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| #include "base/lazy_instance.h"
|
| @@ -89,6 +91,10 @@ class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient {
|
| ExtensionFunctionRegistry* registry) const OVERRIDE;
|
| virtual scoped_ptr<extensions::RuntimeAPIDelegate> CreateRuntimeAPIDelegate(
|
| content::BrowserContext* context) const OVERRIDE;
|
| + virtual bool IsComponentExtensionResource(
|
| + const base::FilePath& extension_path,
|
| + const base::FilePath& resource_path,
|
| + int* resource_id) const OVERRIDE;
|
|
|
| private:
|
| friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>;
|
| @@ -101,6 +107,10 @@ class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient {
|
| scoped_ptr<ChromeExtensionsAPIClient> api_client_;
|
| #endif
|
|
|
| + // A map from a resource path to the resource ID. Used by
|
| + // IsComponentExtensionResource.
|
| + std::map<base::FilePath, int> path_to_resource_id_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient);
|
| };
|
|
|
|
|