diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-09 22:31:43 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-09 22:31:43 +0000 |
commit | 19c28bfec867442cc416fa5a3108418e01c714fb (patch) | |
tree | e832b7ec5f9792c27152470d1b44046ff5a2fc6f /remoting/protocol/video_writer.h | |
parent | 8ec98cd25edd4f9329c0acefd98d4b6f69e4632d (diff) | |
download | chromium_src-19c28bfec867442cc416fa5a3108418e01c714fb.zip chromium_src-19c28bfec867442cc416fa5a3108418e01c714fb.tar.gz chromium_src-19c28bfec867442cc416fa5a3108418e01c714fb.tar.bz2 |
Remove video_channel() from Session interface
BUG=None
TEST=Unittests.
Review URL: http://codereview.chromium.org/7508044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96089 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/video_writer.h')
-rw-r--r-- | remoting/protocol/video_writer.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/remoting/protocol/video_writer.h b/remoting/protocol/video_writer.h index be4c715..68b19fd 100644 --- a/remoting/protocol/video_writer.h +++ b/remoting/protocol/video_writer.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -11,6 +11,7 @@ #define REMOTING_PROTOCOL_VIDEO_WRITER_H_ #include "base/basictypes.h" +#include "base/callback.h" #include "remoting/protocol/video_stub.h" namespace remoting { @@ -23,10 +24,14 @@ class VideoWriter : public VideoStub { public: virtual ~VideoWriter(); + // The callback is called when initialization is finished. The + // parameter is set to true on success. + typedef base::Callback<void(bool)> InitializedCallback; + static VideoWriter* Create(const SessionConfig* config); // Initializes the writer. - virtual void Init(Session* session) = 0; + virtual void Init(Session* session, const InitializedCallback& callback) = 0; // Stops writing. Must be called on the network thread before this // object is destroyed. |