• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CONTENT_BROWSER_STREAMS_STREAM_READ_OBSERVER_H_
6 #define CONTENT_BROWSER_STREAMS_STREAM_READ_OBSERVER_H_
7 
8 #include "content/common/content_export.h"
9 
10 namespace content {
11 
12 class Stream;
13 
14 class CONTENT_EXPORT StreamReadObserver {
15  public:
16   // Sent when there is data available to be read from the stream.
17   virtual void OnDataAvailable(Stream* stream) = 0;
18 
19  protected:
~StreamReadObserver()20   virtual ~StreamReadObserver() {}
21 };
22 
23 }  // namespace content
24 
25 #endif  // CONTENT_BROWSER_STREAMS_STREAM_READ_OBSERVER_H_
26 
27