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 EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
6 #define EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 6 #define EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 298 |
299 class WebViewInternalFindFunction | 299 class WebViewInternalFindFunction |
300 : public LegacyWebViewInternalExtensionFunction { | 300 : public LegacyWebViewInternalExtensionFunction { |
301 public: | 301 public: |
302 DECLARE_EXTENSION_FUNCTION("webViewInternal.find", WEBVIEWINTERNAL_FIND); | 302 DECLARE_EXTENSION_FUNCTION("webViewInternal.find", WEBVIEWINTERNAL_FIND); |
303 | 303 |
304 WebViewInternalFindFunction(); | 304 WebViewInternalFindFunction(); |
305 | 305 |
306 // Exposes SendResponse() for use by WebViewInternalFindHelper. | 306 // Exposes SendResponse() for use by WebViewInternalFindHelper. |
307 using LegacyWebViewInternalExtensionFunction::SendResponse; | 307 using LegacyWebViewInternalExtensionFunction::SendResponse; |
| 308 using LegacyWebViewInternalExtensionFunction::SetResult; |
308 | 309 |
309 protected: | 310 protected: |
310 ~WebViewInternalFindFunction() override; | 311 ~WebViewInternalFindFunction() override; |
311 | 312 |
312 private: | 313 private: |
313 // LegacyWebViewInternalExtensionFunction implementation. | 314 // LegacyWebViewInternalExtensionFunction implementation. |
314 bool RunAsyncSafe(WebViewGuest* guest) override; | 315 bool RunAsyncSafe(WebViewGuest* guest) override; |
315 | 316 |
316 DISALLOW_COPY_AND_ASSIGN(WebViewInternalFindFunction); | 317 DISALLOW_COPY_AND_ASSIGN(WebViewInternalFindFunction); |
317 }; | 318 }; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 uint32_t remove_mask_; | 455 uint32_t remove_mask_; |
455 // Tracks any data related or parse errors. | 456 // Tracks any data related or parse errors. |
456 bool bad_message_; | 457 bool bad_message_; |
457 | 458 |
458 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); | 459 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); |
459 }; | 460 }; |
460 | 461 |
461 } // namespace extensions | 462 } // namespace extensions |
462 | 463 |
463 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 464 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
OLD | NEW |