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

Unified Diff: components/guest_view/browser/guest_view_base.h

Issue 1641563002: Remove linked_ptr usage in //base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase, really 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: components/guest_view/browser/guest_view_base.h
diff --git a/components/guest_view/browser/guest_view_base.h b/components/guest_view/browser/guest_view_base.h
index 9d5b340d2166e0a8e7efccdacbb46ee0d31971ed..745dd7a6a2b554c30be593ca09eb1624bb75e592 100644
--- a/components/guest_view/browser/guest_view_base.h
+++ b/components/guest_view/browser/guest_view_base.h
@@ -8,6 +8,7 @@
#include <queue>
#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/values.h"
#include "components/guest_view/common/guest_view_constants.h"
@@ -112,10 +113,10 @@ class GuestViewBase : public content::BrowserPluginGuestDelegate,
virtual int GetTaskPrefix() const = 0;
// Dispatches an event to the guest proxy.
- void DispatchEventToGuestProxy(GuestViewEvent* event);
+ void DispatchEventToGuestProxy(scoped_ptr<GuestViewEvent> event);
// Dispatches an event to the view.
- void DispatchEventToView(GuestViewEvent* event);
+ void DispatchEventToView(scoped_ptr<GuestViewEvent> event);
// This creates a WebContents and initializes |this| GuestViewBase to use the
// newly created WebContents.
@@ -431,7 +432,7 @@ class GuestViewBase : public content::BrowserPluginGuestDelegate,
// This is a queue of Events that are destined to be sent to the embedder once
// the guest is attached to a particular embedder.
- std::deque<linked_ptr<GuestViewEvent> > pending_events_;
+ std::deque<scoped_ptr<GuestViewEvent>> pending_events_;
// The opener guest view.
base::WeakPtr<GuestViewBase> opener_;
« no previous file with comments | « chrome/browser/printing/cloud_print/privet_notifications.cc ('k') | components/guest_view/browser/guest_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698