Index: remoting/protocol/video_reader.h |
diff --git a/remoting/protocol/video_reader.h b/remoting/protocol/video_reader.h |
index ba39be3c1f702942c8a1c052c91ad7acd30d5b09..e539c0d00c3e6a12f4293ac74fd7af0d1dbb43cf 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() { } |