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

Unified Diff: extensions/browser/guest_view/web_view/web_view_guest_delegate.h

Issue 1641563002: Remove linked_ptr usage in //base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/guest_view/web_view/web_view_guest_delegate.h
diff --git a/extensions/browser/guest_view/web_view/web_view_guest_delegate.h b/extensions/browser/guest_view/web_view/web_view_guest_delegate.h
index afee25935e2da120b42024de48a9920f8adc9adf..e0c33c1a774dbe354aba8705bc22f4e6e5b64b6e 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest_delegate.h
+++ b/extensions/browser/guest_view/web_view/web_view_guest_delegate.h
@@ -6,6 +6,7 @@
#define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_
#include "base/callback.h"
+#include "base/memory/scoped_ptr.h"
#include "components/guest_view/browser/guest_view_base.h"
namespace content {
@@ -29,9 +30,6 @@ class WebViewGuestDelegate {
public :
virtual ~WebViewGuestDelegate() {}
- typedef std::vector<linked_ptr<api::web_view_internal::ContextMenuItem> >
- MenuItemVector;
-
// Called when context menu operation was handled.
virtual bool HandleContextMenu(const content::ContextMenuParams& params) = 0;
@@ -39,12 +37,7 @@ class WebViewGuestDelegate {
virtual void OnDidInitialize() = 0;
// Shows the context menu for the guest.
- // |items| acts as a filter. This restricts the current context's default
- // menu items to contain only the items from |items|.
- // |items| == NULL means no filtering will be applied.
- virtual void OnShowContextMenu(
- int request_id,
- const MenuItemVector* items) = 0;
+ virtual void OnShowContextMenu(int request_id) = 0;
// Returns true if the WebViewGuest should handle find requests for its
// embedder.

Powered by Google App Engine
This is Rietveld 408576698