summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/util.h
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 02:22:43 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 02:22:43 +0000
commit35b9c560f122a92d671e55985fd0161293961ceb (patch)
tree919367302b47900ce396684e9e1188d70cd5eca6 /remoting/protocol/util.h
parentd78482a45263f6fb46af84a766f9407e54c2ede7 (diff)
downloadchromium_src-35b9c560f122a92d671e55985fd0161293961ceb.zip
chromium_src-35b9c560f122a92d671e55985fd0161293961ceb.tar.gz
chromium_src-35b9c560f122a92d671e55985fd0161293961ceb.tar.bz2
Implementation of InputStub for chromoting
BUG=none TEST=none Review URL: http://codereview.chromium.org/4533001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/util.h')
-rw-r--r--remoting/protocol/util.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/remoting/protocol/util.h b/remoting/protocol/util.h
index 9dee8b5a..8c460f0 100644
--- a/remoting/protocol/util.h
+++ b/remoting/protocol/util.h
@@ -2,16 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// This file defines utility methods used for encoding and decoding the protocol
+// used in Chromoting.
+
#ifndef REMOTING_PROTOCOL_UTIL_H_
#define REMOTING_PROTOCOL_UTIL_H_
#include "google/protobuf/message_lite.h"
#include "net/base/io_buffer.h"
-// TODO(hclam): Should not include internal.pb.h.
-#include "remoting/proto/internal.pb.h"
-// This file defines utility methods used for encoding and decoding the protocol
-// used in Chromoting.
+class Task;
+
namespace remoting {
// Serialize the Protocol Buffer message and provide sufficient framing for
@@ -21,6 +22,9 @@ namespace remoting {
scoped_refptr<net::IOBufferWithSize> SerializeAndFrameMessage(
const google::protobuf::MessageLite& msg);
+// Create a runnable task that deletes a message.
+Task* NewDeleteMessageTask(google::protobuf::MessageLite* message);
+
} // namespace remoting
#endif // REMOTING_PROTOCOL_UTIL_H_