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

Unified Diff: mojo/system/handle_table.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/dispatcher.cc ('k') | mojo/system/handle_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/handle_table.h
diff --git a/mojo/system/handle_table.h b/mojo/system/handle_table.h
index 408fae2cf6979103d0bba6afaca3504dc9ce3bcb..96f7abae7450353316440ecd1b3bf325df74f92f 100644
--- a/mojo/system/handle_table.h
+++ b/mojo/system/handle_table.h
@@ -21,6 +21,8 @@ class Core;
class Dispatcher;
class DispatcherTransport;
+typedef std::vector<scoped_refptr<Dispatcher> > DispatcherVector;
+
// Test-only function (defined/used in embedder/test_embedder.cc). Declared here
// so it can be friended.
namespace internal {
@@ -74,9 +76,8 @@ class MOJO_SYSTEM_IMPL_EXPORT HandleTable {
// of the dispatchers may be invalid (null). Returns true on success and false
// on failure (if the handle table is full), in which case it leaves
// |handles[...]| untouched (and all dispatchers unadded).
- bool AddDispatcherVector(
- const std::vector<scoped_refptr<Dispatcher> >& dispatchers,
- MojoHandle* handles);
+ bool AddDispatcherVector(const DispatcherVector& dispatchers,
+ MojoHandle* handles);
// Tries to mark the given handles as busy and start transport on them (i.e.,
// take their dispatcher locks); |transports| must be sized to contain
« no previous file with comments | « mojo/system/dispatcher.cc ('k') | mojo/system/handle_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698