| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BIN_DBG_MESSAGE_H_ | 5 #ifndef BIN_DBG_MESSAGE_H_ |
| 6 #define BIN_DBG_MESSAGE_H_ | 6 #define BIN_DBG_MESSAGE_H_ |
| 7 | 7 |
| 8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "bin/utils.h" | 9 #include "bin/utils.h" |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // Accessors. | 39 // Accessors. |
| 40 const char* buf() const { return buf_; } | 40 const char* buf() const { return buf_; } |
| 41 | 41 |
| 42 bool IsValidMessage() const; | 42 bool IsValidMessage() const; |
| 43 int MessageId() const; | 43 int MessageId() const; |
| 44 | 44 |
| 45 const char* Params() const; | 45 const char* Params() const; |
| 46 bool HasParam(const char* name) const; | 46 bool HasParam(const char* name) const; |
| 47 intptr_t GetIntParam(const char* name) const; | 47 intptr_t GetIntParam(const char* name) const; |
| 48 int64_t GetInt64Param(const char* name) const; |
| 48 intptr_t GetOptIntParam(const char* name, intptr_t default_val) const; | 49 intptr_t GetOptIntParam(const char* name, intptr_t default_val) const; |
| 49 | 50 |
| 50 // GetStringParam mallocs the buffer that it returns. Caller must free. | 51 // GetStringParam mallocs the buffer that it returns. Caller must free. |
| 51 char* GetStringParam(const char* name) const; | 52 char* GetStringParam(const char* name) const; |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 const char* buf_; | 55 const char* buf_; |
| 55 int buf_length_; | 56 int buf_length_; |
| 56 | 57 |
| 57 DISALLOW_COPY_AND_ASSIGN(MessageParser); | 58 DISALLOW_COPY_AND_ASSIGN(MessageParser); |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 static dart::Mutex* msg_queue_list_lock_; | 273 static dart::Mutex* msg_queue_list_lock_; |
| 273 | 274 |
| 274 DISALLOW_ALLOCATION(); | 275 DISALLOW_ALLOCATION(); |
| 275 DISALLOW_IMPLICIT_CONSTRUCTORS(DbgMsgQueueList); | 276 DISALLOW_IMPLICIT_CONSTRUCTORS(DbgMsgQueueList); |
| 276 }; | 277 }; |
| 277 | 278 |
| 278 } // namespace bin | 279 } // namespace bin |
| 279 } // namespace dart | 280 } // namespace dart |
| 280 | 281 |
| 281 #endif // BIN_DBG_MESSAGE_H_ | 282 #endif // BIN_DBG_MESSAGE_H_ |
| OLD | NEW |