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

Unified Diff: mojo/system/transport_data.h

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/remote_message_pipe_unittest.cc ('k') | mojo/system/transport_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/transport_data.h
diff --git a/mojo/system/transport_data.h b/mojo/system/transport_data.h
index d4d9528fc2915761a78af741a21ec03aa5198c56..569ff8efe8bf35323d0cce16bf718eedea4758d8 100644
--- a/mojo/system/transport_data.h
+++ b/mojo/system/transport_data.h
@@ -79,9 +79,7 @@ class MOJO_SYSTEM_IMPL_EXPORT TransportData {
// dispatcher.
static const size_t kMaxSerializedDispatcherPlatformHandles = 2;
- TransportData(
- scoped_ptr<std::vector<scoped_refptr<Dispatcher> > > dispatchers,
- Channel* channel);
+ TransportData(scoped_ptr<DispatcherVector> dispatchers, Channel* channel);
~TransportData();
const void* buffer() const { return buffer_.get(); }
@@ -112,10 +110,10 @@ class MOJO_SYSTEM_IMPL_EXPORT TransportData {
// Deserializes dispatchers from the given (serialized) transport data buffer
// (typically from a |MessageInTransit::View|). |buffer| should be non-null
// and |buffer_size| should be nonzero.
- static scoped_ptr<std::vector<scoped_refptr<Dispatcher> > >
- DeserializeDispatchersFromBuffer(const void* buffer,
- size_t buffer_size,
- Channel* channel);
+ static scoped_ptr<DispatcherVector> DeserializeDispatchersFromBuffer(
+ const void* buffer,
+ size_t buffer_size,
+ Channel* channel);
private:
// To allow us to make compile-assertions about |Header|, etc. in the .cc
« no previous file with comments | « mojo/system/remote_message_pipe_unittest.cc ('k') | mojo/system/transport_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698