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

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

Issue 1181263007: WebView context menu cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A new strategy. Rebased. Created 5 years, 5 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 "extensions/browser/api/capture_web_contents_function.h" 8 #include "extensions/browser/api/capture_web_contents_function.h"
9 #include "extensions/browser/api/execute_code_function.h" 9 #include "extensions/browser/api/execute_code_function.h"
10 #include "extensions/browser/extension_function.h" 10 #include "extensions/browser/extension_function.h"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 protected: 352 protected:
353 ~WebViewInternalReloadFunction() override; 353 ~WebViewInternalReloadFunction() override;
354 354
355 private: 355 private:
356 // WebViewInternalExtensionFunction implementation. 356 // WebViewInternalExtensionFunction implementation.
357 bool RunAsyncSafe(WebViewGuest* guest) override; 357 bool RunAsyncSafe(WebViewGuest* guest) override;
358 358
359 DISALLOW_COPY_AND_ASSIGN(WebViewInternalReloadFunction); 359 DISALLOW_COPY_AND_ASSIGN(WebViewInternalReloadFunction);
360 }; 360 };
361 361
362 class WebViewInternalReportExtensionIdFunction : public AsyncExtensionFunction {
363 public:
364 DECLARE_EXTENSION_FUNCTION("webViewInternal.reportExtensionId",
365 WEBVIEWINTERNAL_SETAUTOSIZE);
366
367 WebViewInternalReportExtensionIdFunction();
368
369 protected:
370 ~WebViewInternalReportExtensionIdFunction() override;
371 bool RunAsync() final;
Devlin 2015/07/06 17:46:18 See my comment in the .cc for why this is moot, bu
372
373 private:
374 DISALLOW_COPY_AND_ASSIGN(WebViewInternalReportExtensionIdFunction);
375 };
376
362 class WebViewInternalSetPermissionFunction 377 class WebViewInternalSetPermissionFunction
363 : public WebViewInternalExtensionFunction { 378 : public WebViewInternalExtensionFunction {
364 public: 379 public:
365 DECLARE_EXTENSION_FUNCTION("webViewInternal.setPermission", 380 DECLARE_EXTENSION_FUNCTION("webViewInternal.setPermission",
366 WEBVIEWINTERNAL_SETPERMISSION); 381 WEBVIEWINTERNAL_SETPERMISSION);
367 382
368 WebViewInternalSetPermissionFunction(); 383 WebViewInternalSetPermissionFunction();
369 384
370 protected: 385 protected:
371 ~WebViewInternalSetPermissionFunction() override; 386 ~WebViewInternalSetPermissionFunction() override;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 uint32 remove_mask_; 468 uint32 remove_mask_;
454 // Tracks any data related or parse errors. 469 // Tracks any data related or parse errors.
455 bool bad_message_; 470 bool bad_message_;
456 471
457 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); 472 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction);
458 }; 473 };
459 474
460 } // namespace extensions 475 } // namespace extensions
461 476
462 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ 477 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698