Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: dbus/message.h

Issue 10409065: Change setters of dbus::Message to return false instead of aborting on errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dbus/exported_object.cc ('k') | dbus/message.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 DBUS_MESSAGE_H_ 5 #ifndef DBUS_MESSAGE_H_
6 #define DBUS_MESSAGE_H_ 6 #define DBUS_MESSAGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // raw_message_ is NULL. 83 // raw_message_ is NULL.
84 MessageType GetMessageType(); 84 MessageType GetMessageType();
85 85
86 // Returns the type of the message as string like "MESSAGE_METHOD_CALL" 86 // Returns the type of the message as string like "MESSAGE_METHOD_CALL"
87 // for instance. 87 // for instance.
88 std::string GetMessageTypeAsString(); 88 std::string GetMessageTypeAsString();
89 89
90 DBusMessage* raw_message() { return raw_message_; } 90 DBusMessage* raw_message() { return raw_message_; }
91 91
92 // Sets the destination, the path, the interface, the member, etc. 92 // Sets the destination, the path, the interface, the member, etc.
93 void SetDestination(const std::string& destination); 93 bool SetDestination(const std::string& destination);
94 void SetPath(const ObjectPath& path); 94 bool SetPath(const ObjectPath& path);
95 void SetInterface(const std::string& interface); 95 bool SetInterface(const std::string& interface);
96 void SetMember(const std::string& member); 96 bool SetMember(const std::string& member);
97 void SetErrorName(const std::string& error_name); 97 bool SetErrorName(const std::string& error_name);
98 void SetSender(const std::string& sender); 98 bool SetSender(const std::string& sender);
99 void SetSerial(uint32 serial); 99 void SetSerial(uint32 serial);
100 void SetReplySerial(uint32 reply_serial); 100 void SetReplySerial(uint32 reply_serial);
101 // SetSignature() does not exist as we cannot do it. 101 // SetSignature() does not exist as we cannot do it.
102 102
103 // Gets the destination, the path, the interface, the member, etc. 103 // Gets the destination, the path, the interface, the member, etc.
104 // If not set, an empty string is returned. 104 // If not set, an empty string is returned.
105 std::string GetDestination(); 105 std::string GetDestination();
106 ObjectPath GetPath(); 106 ObjectPath GetPath();
107 std::string GetInterface(); 107 std::string GetInterface();
108 std::string GetMember(); 108 std::string GetMember();
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 473
474 Message* message_; 474 Message* message_;
475 DBusMessageIter raw_message_iter_; 475 DBusMessageIter raw_message_iter_;
476 476
477 DISALLOW_COPY_AND_ASSIGN(MessageReader); 477 DISALLOW_COPY_AND_ASSIGN(MessageReader);
478 }; 478 };
479 479
480 } // namespace dbus 480 } // namespace dbus
481 481
482 #endif // DBUS_MESSAGE_H_ 482 #endif // DBUS_MESSAGE_H_
OLDNEW
« no previous file with comments | « dbus/exported_object.cc ('k') | dbus/message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698