Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: extensions/browser/api/guest_view/web_view/web_view_internal_api.h

Issue 2360073002: [Extensions] Isolate ExtensionFunction results_ and error_ (Closed)
Patch Set: lazyboy's Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « extensions/browser/api/execute_code_function.cc ('k') | extensions/browser/api/guest_view/web_view/web_view_internal_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698