| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/proxy/broker_dispatcher.h" | 5 #include "ppapi/proxy/broker_dispatcher.h" |
| 6 | 6 |
| 7 #include "base/sync_socket.h" | 7 #include "base/sync_socket.h" |
| 8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/proxy/ppapi_messages.h" | 9 #include "ppapi/proxy/ppapi_messages.h" |
| 10 | 10 |
| 11 namespace pp { | 11 namespace ppapi { |
| 12 namespace proxy { | 12 namespace proxy { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 int32_t PlatformFileToInt(base::PlatformFile handle) { | 16 int32_t PlatformFileToInt(base::PlatformFile handle) { |
| 17 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 18 return static_cast<int32_t>(reinterpret_cast<intptr_t>(handle)); | 18 return static_cast<int32_t>(reinterpret_cast<intptr_t>(handle)); |
| 19 #elif defined(OS_POSIX) | 19 #elif defined(OS_POSIX) |
| 20 return handle; | 20 return handle; |
| 21 #else | 21 #else |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // The renderer has crashed or exited. This channel and all instances | 104 // The renderer has crashed or exited. This channel and all instances |
| 105 // associated with it are no longer valid. | 105 // associated with it are no longer valid. |
| 106 // TODO(ddorwin): This causes the broker process to exit, which may not be | 106 // TODO(ddorwin): This causes the broker process to exit, which may not be |
| 107 // desirable in some use cases. | 107 // desirable in some use cases. |
| 108 delete this; | 108 delete this; |
| 109 } | 109 } |
| 110 | 110 |
| 111 | 111 |
| 112 } // namespace proxy | 112 } // namespace proxy |
| 113 } // namespace pp | 113 } // namespace ppapi |
| OLD | NEW |