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

Unified Diff: content/renderer/pepper/pepper_url_loader_host.h

Issue 2705073003: Remove ScopedVector from content/renderer/. (Closed)
Patch Set: Rebase only Created 3 years, 10 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: content/renderer/pepper/pepper_url_loader_host.h
diff --git a/content/renderer/pepper/pepper_url_loader_host.h b/content/renderer/pepper/pepper_url_loader_host.h
index 31beb7e3f68ea4ce24d8b609a53fe93eb31933e8..94defc733e32ec392c4e049dab9e357155f5edb8 100644
--- a/content/renderer/pepper/pepper_url_loader_host.h
+++ b/content/renderer/pepper/pepper_url_loader_host.h
@@ -7,10 +7,10 @@
#include <stdint.h>
+#include <memory>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "content/common/content_export.h"
#include "ppapi/host/resource_host.h"
@@ -76,14 +76,14 @@ class PepperURLLoaderHost : public ppapi::host::ResourceHost,
// plugin has not connected to us yet.
//
// Takes ownership of the given pointer.
- void SendUpdateToPlugin(IPC::Message* msg);
+ void SendUpdateToPlugin(std::unique_ptr<IPC::Message> msg);
// Sends or queues an unsolicited message to the plugin resource. This is
// used inside SendUpdateToPlugin for messages that are already ordered
// properly.
//
// Takes ownership of the given pointer.
- void SendOrderedUpdateToPlugin(IPC::Message* msg);
+ void SendOrderedUpdateToPlugin(std::unique_ptr<IPC::Message> msg);
void Close();
@@ -131,8 +131,8 @@ class PepperURLLoaderHost : public ppapi::host::ResourceHost,
// Messages sent while the resource host is pending. These will be forwarded
// to the plugin when the plugin side connects. The pointers are owned by
// this object and must be deleted.
- ScopedVector<IPC::Message> pending_replies_;
- ScopedVector<IPC::Message> out_of_order_replies_;
+ std::vector<std::unique_ptr<IPC::Message>> pending_replies_;
+ std::vector<std::unique_ptr<IPC::Message>> out_of_order_replies_;
// True when there's a pending DataFromURLResponse call which will send a
// PpapiPluginMsg_URLLoader_ReceivedResponse to the plugin, which introduces
« no previous file with comments | « content/renderer/pepper/pepper_audio_encoder_host.h ('k') | content/renderer/pepper/pepper_url_loader_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698