Use lossless compression for CRD icon.
[chromium-blink-merge.git] / content / browser / streams / stream_write_observer.h
blobdeab7ad009ef2cd7e00f155682b80d2d604192a0
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.
5 #ifndef CONTENT_BROWSER_STREAMS_STREAM_WRITE_OBSERVER_H_
6 #define CONTENT_BROWSER_STREAMS_STREAM_WRITE_OBSERVER_H_
8 namespace content {
10 class Stream;
12 class StreamWriteObserver {
13 public:
14 // Sent when space becomes available in the stream, and the source should
15 // resume writing.
16 virtual void OnSpaceAvailable(Stream* stream) = 0;
18 // Sent when the stream is closed, and the writer should stop sending data.
19 virtual void OnClose(Stream* stream) = 0;
21 protected:
22 virtual ~StreamWriteObserver() {}
25 } // namespace content
27 #endif // CONTENT_BROWSER_STREAMS_STREAM_WRITE_OBSERVER_H_