| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/system/channel.h" | 5 #include "mojo/system/channel.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "mojo/embedder/platform_channel_pair.h" | 10 #include "mojo/embedder/platform_channel_pair.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 private: | 132 private: |
| 133 // |RawChannel| protected methods: | 133 // |RawChannel| protected methods: |
| 134 virtual IOResult Read(size_t*) OVERRIDE { | 134 virtual IOResult Read(size_t*) OVERRIDE { |
| 135 CHECK(false); | 135 CHECK(false); |
| 136 return IO_FAILED; | 136 return IO_FAILED; |
| 137 } | 137 } |
| 138 virtual IOResult ScheduleRead() OVERRIDE { | 138 virtual IOResult ScheduleRead() OVERRIDE { |
| 139 CHECK(false); | 139 CHECK(false); |
| 140 return IO_FAILED; | 140 return IO_FAILED; |
| 141 } | 141 } |
| 142 virtual scoped_ptr<embedder::PlatformHandleVector> GetReadPlatformHandles( |
| 143 size_t, const void*) OVERRIDE { |
| 144 CHECK(false); |
| 145 return scoped_ptr<embedder::PlatformHandleVector>(); |
| 146 } |
| 142 virtual IOResult WriteNoLock(size_t*, size_t*) OVERRIDE { | 147 virtual IOResult WriteNoLock(size_t*, size_t*) OVERRIDE { |
| 143 CHECK(false); | 148 CHECK(false); |
| 144 return IO_FAILED; | 149 return IO_FAILED; |
| 145 } | 150 } |
| 146 virtual IOResult ScheduleWriteNoLock() OVERRIDE { | 151 virtual IOResult ScheduleWriteNoLock() OVERRIDE { |
| 147 CHECK(false); | 152 CHECK(false); |
| 148 return IO_FAILED; | 153 return IO_FAILED; |
| 149 } | 154 } |
| 150 virtual bool OnInit() OVERRIDE { | 155 virtual bool OnInit() OVERRIDE { |
| 151 EXPECT_FALSE(on_init_called_); | 156 EXPECT_FALSE(on_init_called_); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 mp->Close(0); | 320 mp->Close(0); |
| 316 | 321 |
| 317 EXPECT_TRUE(channel()->HasOneRef()); | 322 EXPECT_TRUE(channel()->HasOneRef()); |
| 318 } | 323 } |
| 319 | 324 |
| 320 // TODO(vtl): More. ------------------------------------------------------------ | 325 // TODO(vtl): More. ------------------------------------------------------------ |
| 321 | 326 |
| 322 } // namespace | 327 } // namespace |
| 323 } // namespace system | 328 } // namespace system |
| 324 } // namespace mojo | 329 } // namespace mojo |
| OLD | NEW |