| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_APP_HOOKS_DELEGATE_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_APP_HOOKS_DELEGATE_H_ |
| 6 #define CHROME_RENDERER_EXTENSIONS_APP_HOOKS_DELEGATE_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_APP_HOOKS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/renderer/extensions/app_bindings_core.h" | 11 #include "chrome/renderer/extensions/app_bindings_core.h" |
| 12 #include "extensions/renderer/api_binding_hooks_delegate.h" | 12 #include "extensions/renderer/bindings/api_binding_hooks_delegate.h" |
| 13 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 class APIRequestHandler; | 16 class APIRequestHandler; |
| 17 class Dispatcher; | 17 class Dispatcher; |
| 18 | 18 |
| 19 // The custom hooks for the chrome.app API. | 19 // The custom hooks for the chrome.app API. |
| 20 class AppHooksDelegate : public APIBindingHooksDelegate { | 20 class AppHooksDelegate : public APIBindingHooksDelegate { |
| 21 public: | 21 public: |
| 22 using GetterCallback = | 22 using GetterCallback = |
| (...skipping 21 matching lines...) Expand all Loading... |
| 44 APIRequestHandler* request_handler_ = nullptr; | 44 APIRequestHandler* request_handler_ = nullptr; |
| 45 | 45 |
| 46 GetterCallback callback_; | 46 GetterCallback callback_; |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(AppHooksDelegate); | 48 DISALLOW_COPY_AND_ASSIGN(AppHooksDelegate); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace extensions | 51 } // namespace extensions |
| 52 | 52 |
| 53 #endif // CHROME_RENDERER_EXTENSIONS_APP_HOOKS_DELEGATE_H_ | 53 #endif // CHROME_RENDERER_EXTENSIONS_APP_HOOKS_DELEGATE_H_ |
| OLD | NEW |