| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 EXTENSIONS_RENDERER_API_REQUEST_HANDLER_H_ | 5 #ifndef EXTENSIONS_RENDERER_BINDINGS_API_REQUEST_HANDLER_H_ |
| 6 #define EXTENSIONS_RENDERER_API_REQUEST_HANDLER_H_ | 6 #define EXTENSIONS_RENDERER_BINDINGS_API_REQUEST_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "extensions/renderer/api_binding_types.h" | 14 #include "extensions/renderer/bindings/api_binding_types.h" |
| 15 #include "extensions/renderer/api_last_error.h" | 15 #include "extensions/renderer/bindings/api_last_error.h" |
| 16 #include "third_party/WebKit/public/web/WebUserGestureToken.h" | 16 #include "third_party/WebKit/public/web/WebUserGestureToken.h" |
| 17 #include "v8/include/v8.h" | 17 #include "v8/include/v8.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class ListValue; | 20 class ListValue; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace extensions { | 23 namespace extensions { |
| 24 | 24 |
| 25 // A wrapper around a map for extension API calls. Contains all pending requests | 25 // A wrapper around a map for extension API calls. Contains all pending requests |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // (where we have to deal with e.g. blocking javascript). | 119 // (where we have to deal with e.g. blocking javascript). |
| 120 CallJSFunction call_js_; | 120 CallJSFunction call_js_; |
| 121 | 121 |
| 122 APILastError last_error_; | 122 APILastError last_error_; |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(APIRequestHandler); | 124 DISALLOW_COPY_AND_ASSIGN(APIRequestHandler); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace extensions | 127 } // namespace extensions |
| 128 | 128 |
| 129 #endif // EXTENSIONS_RENDERER_API_REQUEST_HANDLER_H_ | 129 #endif // EXTENSIONS_RENDERER_BINDINGS_API_REQUEST_HANDLER_H_ |
| OLD | NEW |