| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_ |
| 6 #define CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "extensions/renderer/extensions_renderer_client.h" | 9 #include "extensions/renderer/extensions_renderer_client.h" |
| 10 | 10 |
| 11 class ChromeExtensionsRendererClient | 11 class ChromeExtensionsRendererClient |
| 12 : public extensions::ExtensionsRendererClient { | 12 : public extensions::ExtensionsRendererClient { |
| 13 public: | 13 public: |
| 14 ChromeExtensionsRendererClient(); | 14 ChromeExtensionsRendererClient(); |
| 15 virtual ~ChromeExtensionsRendererClient(); | 15 virtual ~ChromeExtensionsRendererClient(); |
| 16 | 16 |
| 17 // Get the LazyInstance for ChromeExtensionsRendererClient. | 17 // Get the LazyInstance for ChromeExtensionsRendererClient. |
| 18 static ChromeExtensionsRendererClient* GetInstance(); | 18 static ChromeExtensionsRendererClient* GetInstance(); |
| 19 | 19 |
| 20 // extensions::ExtensionsRendererClient implementation. | 20 // extensions::ExtensionsRendererClient implementation. |
| 21 virtual bool IsIncognitoProcess() const OVERRIDE; | 21 virtual bool IsIncognitoProcess() const OVERRIDE; |
| 22 virtual int GetLowestIsolatedWorldId() const OVERRIDE; | 22 virtual int GetLowestIsolatedWorldId() const OVERRIDE; |
| 23 virtual void RegisterNativeHandlers( |
| 24 extensions::ModuleSystem* module_system, |
| 25 extensions::ScriptContext* context) OVERRIDE; |
| 26 virtual void PopulateSourceMap(ResourceBundleSourceMap* source_map) OVERRIDE; |
| 23 | 27 |
| 24 private: | 28 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsRendererClient); | 29 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsRendererClient); |
| 26 }; | 30 }; |
| 27 | 31 |
| 28 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_ | 32 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_ |
| OLD | NEW |