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

Unified Diff: mojo/system/transport_data.cc

Issue 262093003: Mojo: Add/use |typedef std::vector<scoped_refptr<Dispatcher> > DispatcherVector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « mojo/system/transport_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/transport_data.cc
diff --git a/mojo/system/transport_data.cc b/mojo/system/transport_data.cc
index b3c48458e30c529af0b4a602ed95b8cdc8867f9b..634452f47a334ff7fa0e46266fdc0d43815dc0f6 100644
--- a/mojo/system/transport_data.cc
+++ b/mojo/system/transport_data.cc
@@ -46,9 +46,8 @@ struct TransportData::PrivateStructForCompileAsserts {
sizeof_MessageInTransit_HandleTableEntry_invalid);
};
-TransportData::TransportData(
- scoped_ptr<std::vector<scoped_refptr<Dispatcher> > > dispatchers,
- Channel* channel)
+TransportData::TransportData(scoped_ptr<DispatcherVector> dispatchers,
+ Channel* channel)
: buffer_size_(0) {
DCHECK(dispatchers);
DCHECK(channel);
@@ -219,18 +218,17 @@ const char* TransportData::ValidateBuffer(const void* buffer,
}
// static
-scoped_ptr<std::vector<scoped_refptr<Dispatcher> > >
- TransportData::DeserializeDispatchersFromBuffer(const void* buffer,
- size_t buffer_size,
- Channel* channel) {
+scoped_ptr<DispatcherVector> TransportData::DeserializeDispatchersFromBuffer(
+ const void* buffer,
+ size_t buffer_size,
+ Channel* channel) {
DCHECK(buffer);
DCHECK_GT(buffer_size, 0u);
DCHECK(channel);
const Header* header = static_cast<const Header*>(buffer);
const size_t num_handles = header->num_handles;
- scoped_ptr<std::vector<scoped_refptr<Dispatcher> > > dispatchers(
- new std::vector<scoped_refptr<Dispatcher> >(num_handles));
+ scoped_ptr<DispatcherVector> dispatchers(new DispatcherVector(num_handles));
const HandleTableEntry* handle_table =
reinterpret_cast<const HandleTableEntry*>(
« no previous file with comments | « mojo/system/transport_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698