| 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 "components/nacl/loader/nacl_trusted_listener.h" | 5 #include "components/nacl/loader/nacl_trusted_listener.h" |
| 6 | 6 |
| 7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
| 8 #include "build/build_config.h" |
| 8 #include "ipc/message_filter.h" | 9 #include "ipc/message_filter.h" |
| 9 #include "native_client/src/public/chrome_main.h" | 10 #include "native_client/src/public/chrome_main.h" |
| 10 | 11 |
| 11 namespace { | 12 namespace { |
| 12 | 13 |
| 13 // The OnChannelError() event must be processed in a MessageFilter so it can | 14 // The OnChannelError() event must be processed in a MessageFilter so it can |
| 14 // be handled on the IO thread. The main thread used by NaClListener is busy | 15 // be handled on the IO thread. The main thread used by NaClListener is busy |
| 15 // in NaClChromeMainAppStart(), so it can't be used for servicing messages. | 16 // in NaClChromeMainAppStart(), so it can't be used for servicing messages. |
| 16 class EOFMessageFilter : public IPC::MessageFilter { | 17 class EOFMessageFilter : public IPC::MessageFilter { |
| 17 public: | 18 public: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 return handle; | 59 return handle; |
| 59 } | 60 } |
| 60 | 61 |
| 61 bool NaClTrustedListener::OnMessageReceived(const IPC::Message& msg) { | 62 bool NaClTrustedListener::OnMessageReceived(const IPC::Message& msg) { |
| 62 return false; | 63 return false; |
| 63 } | 64 } |
| 64 | 65 |
| 65 bool NaClTrustedListener::Send(IPC::Message* msg) { | 66 bool NaClTrustedListener::Send(IPC::Message* msg) { |
| 66 return channel_->Send(msg); | 67 return channel_->Send(msg); |
| 67 } | 68 } |
| OLD | NEW |