OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/public/bindings/lib/message_queue.h" | 5 #include "mojo/public/cpp/bindings/lib/message_queue.h" |
6 | 6 |
7 #include <assert.h> | 7 #include <assert.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "mojo/public/cpp/bindings/message.h" | 10 #include "mojo/public/cpp/bindings/message.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 MessageQueue::MessageQueue() { | 15 MessageQueue::MessageQueue() { |
(...skipping 25 matching lines...) Expand all Loading... |
41 } | 41 } |
42 | 42 |
43 void MessageQueue::Pop() { | 43 void MessageQueue::Pop() { |
44 assert(!queue_.empty()); | 44 assert(!queue_.empty()); |
45 delete queue_.front(); | 45 delete queue_.front(); |
46 queue_.pop(); | 46 queue_.pop(); |
47 } | 47 } |
48 | 48 |
49 } // namespace internal | 49 } // namespace internal |
50 } // namespace mojo | 50 } // namespace mojo |
OLD | NEW |