OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebFrameSerializerClient_h | 31 #ifndef WebFrameSerializerClient_h |
32 #define WebFrameSerializerClient_h | 32 #define WebFrameSerializerClient_h |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class WebCString; | 36 class WebCString; |
37 class WebURL; | |
38 | 37 |
39 // This class is used for providing sink interface that can be used to receive | 38 // This class is used for providing sink interface that can be used to receive |
40 // the individual chunks of data to be saved. | 39 // the individual chunks of data to be saved. |
41 class WebFrameSerializerClient { | 40 class WebFrameSerializerClient { |
42 public: | 41 public: |
43 // This sink interface can receive the individual chunks of serialized data | 42 // This sink interface can receive the individual chunks of serialized data |
44 // to be saved, so we use values of following enum definition to indicate | 43 // to be saved, so we use values of following enum definition to indicate |
45 // the serialization status of serializing all html content. If frame is not | 44 // the serialization status of serializing all html content. If frame is not |
46 // completely serialized yet, we will call didSerializeDataForFrame with URL | 45 // completely serialized yet, we will call didSerializeDataForFrame with URL |
47 // of current frame, data, data length and flag CurrentFrameIsNotFinished. | 46 // of current frame, data, data length and flag CurrentFrameIsNotFinished. |
(...skipping 14 matching lines...) Expand all Loading... |
62 | 61 |
63 WebFrameSerializerClient() {} | 62 WebFrameSerializerClient() {} |
64 | 63 |
65 protected: | 64 protected: |
66 virtual ~WebFrameSerializerClient() {} | 65 virtual ~WebFrameSerializerClient() {} |
67 }; | 66 }; |
68 | 67 |
69 } // namespace blink | 68 } // namespace blink |
70 | 69 |
71 #endif | 70 #endif |
OLD | NEW |