| OLD | NEW | 
|    1 // Copyright 2014 The Chromium Authors. All rights reserved. |    1 // Copyright 2014 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #ifndef WebDataConsumerHandle_h |    5 #ifndef WebDataConsumerHandle_h | 
|    6 #define WebDataConsumerHandle_h |    6 #define WebDataConsumerHandle_h | 
|    7  |    7  | 
|    8 #include <stddef.h> |    8 #include <stddef.h> | 
|    9  |    9  | 
|   10 #if INSIDE_BLINK |   10 #if INSIDE_BLINK | 
| (...skipping 24 matching lines...) Expand all  Loading... | 
|   35     enum Result { |   35     enum Result { | 
|   36         Ok, |   36         Ok, | 
|   37         Done, |   37         Done, | 
|   38         Busy, |   38         Busy, | 
|   39         ShouldWait, |   39         ShouldWait, | 
|   40         ResourceExhausted, |   40         ResourceExhausted, | 
|   41         UnexpectedError, |   41         UnexpectedError, | 
|   42     }; |   42     }; | 
|   43  |   43  | 
|   44     // Client gets notification from the pipe. |   44     // Client gets notification from the pipe. | 
|   45     class Client { |   45     class BLINK_PLATFORM_EXPORT Client { | 
|   46     public: |   46     public: | 
|   47         virtual ~Client() { } |   47         virtual ~Client() { } | 
|   48         // The associated handle gets readable. This function will be called |   48         // The associated handle gets readable. This function will be called | 
|   49         // when the associated reader was waiting but is not waiting any more. |   49         // when the associated reader was waiting but is not waiting any more. | 
|   50         // This means this function can be called when handle gets errored or |   50         // This means this function can be called when handle gets errored or | 
|   51         // closed. This also means that this function will not be called even |   51         // closed. This also means that this function will not be called even | 
|   52         // when some data arrives if the handle already has non-empty readable |   52         // when some data arrives if the handle already has non-empty readable | 
|   53         // data. |   53         // data. | 
|   54         // It is not guaranteed that the handle is not waiting when this |   54         // It is not guaranteed that the handle is not waiting when this | 
|   55         // function is called, i.e. it can be called more than needed. |   55         // function is called, i.e. it can be called more than needed. | 
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  126     virtual Reader* obtainReaderInternal(Client* client) |  126     virtual Reader* obtainReaderInternal(Client* client) | 
|  127     { |  127     { | 
|  128         BLINK_ASSERT_NOT_REACHED(); |  128         BLINK_ASSERT_NOT_REACHED(); | 
|  129         return nullptr; |  129         return nullptr; | 
|  130     } |  130     } | 
|  131 }; |  131 }; | 
|  132  |  132  | 
|  133 } // namespace blink |  133 } // namespace blink | 
|  134  |  134  | 
|  135 #endif // WebDataConsumerHandle_h |  135 #endif // WebDataConsumerHandle_h | 
| OLD | NEW |