diff options
Diffstat (limited to 'remoting/protocol/video_reader.h')
-rw-r--r-- | remoting/protocol/video_reader.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/remoting/protocol/video_reader.h b/remoting/protocol/video_reader.h index ba39be3..e539c0d 100644 --- a/remoting/protocol/video_reader.h +++ b/remoting/protocol/video_reader.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. @@ -25,12 +25,17 @@ class VideoReader { public: static VideoReader* Create(const SessionConfig* config); + // The callback is called when initialization is finished. The + // parameter is set to true on success. + typedef base::Callback<void(bool)> InitializedCallback; + virtual ~VideoReader(); // Initializies the reader. Doesn't take ownership of either |connection| // or |video_stub|. virtual void Init(Session* session, - VideoStub* video_stub) = 0; + VideoStub* video_stub, + const InitializedCallback& callback) = 0; protected: VideoReader() { } |