| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef IPC_ATTACHMENT_BROKER_PRIVILEGED_H_ | 5 #ifndef IPC_ATTACHMENT_BROKER_PRIVILEGED_H_ |
| 6 #define IPC_ATTACHMENT_BROKER_PRIVILEGED_H_ | 6 #define IPC_ATTACHMENT_BROKER_PRIVILEGED_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // Couldn't change the attributes of a Mach port. | 72 // Couldn't change the attributes of a Mach port. |
| 73 ERROR_SET_ATTRIBUTES = 7, | 73 ERROR_SET_ATTRIBUTES = 7, |
| 74 // Couldn't extract a right from the destination. | 74 // Couldn't extract a right from the destination. |
| 75 ERROR_EXTRACT_DEST_RIGHT = 8, | 75 ERROR_EXTRACT_DEST_RIGHT = 8, |
| 76 // Couldn't send a Mach port in a call to mach_msg(). | 76 // Couldn't send a Mach port in a call to mach_msg(). |
| 77 ERROR_SEND_MACH_PORT = 9, | 77 ERROR_SEND_MACH_PORT = 9, |
| 78 // Couldn't decrease the ref count on a Mach port. | 78 // Couldn't decrease the ref count on a Mach port. |
| 79 ERROR_DECREASE_REF = 10, | 79 ERROR_DECREASE_REF = 10, |
| 80 // Couldn't extract a right from the source. | 80 // Couldn't extract a right from the source. |
| 81 ERROR_EXTRACT_SOURCE_RIGHT = 11, | 81 ERROR_EXTRACT_SOURCE_RIGHT = 11, |
| 82 // The broker did not have a channel of communication with the source |
| 83 // process. |
| 84 ERROR_SOURCE_NOT_FOUND = 12, |
| 82 ERROR_MAX | 85 ERROR_MAX |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 // Emits an UMA metric. | 88 // Emits an UMA metric. |
| 86 void LogError(UMAError error); | 89 void LogError(UMAError error); |
| 87 | 90 |
| 88 private: | 91 private: |
| 89 std::vector<Endpoint*> endpoints_; | 92 std::vector<Endpoint*> endpoints_; |
| 90 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerPrivileged); | 93 DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerPrivileged); |
| 91 }; | 94 }; |
| 92 | 95 |
| 93 } // namespace IPC | 96 } // namespace IPC |
| 94 | 97 |
| 95 #endif // IPC_ATTACHMENT_BROKER_PRIVILEGED_H_ | 98 #endif // IPC_ATTACHMENT_BROKER_PRIVILEGED_H_ |
| OLD | NEW |