OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2013 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2013 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 struct Checkpoint { | 58 struct Checkpoint { |
59 WeakPtr<HTMLDocumentParser> parser; | 59 WeakPtr<HTMLDocumentParser> parser; |
60 OwnPtr<HTMLToken> token; | 60 OwnPtr<HTMLToken> token; |
61 OwnPtr<HTMLTokenizer> tokenizer; | 61 OwnPtr<HTMLTokenizer> tokenizer; |
62 HTMLTreeBuilderSimulator::State treeBuilderState; | 62 HTMLTreeBuilderSimulator::State treeBuilderState; |
63 HTMLInputCheckpoint inputCheckpoint; | 63 HTMLInputCheckpoint inputCheckpoint; |
64 TokenPreloadScannerCheckpoint preloadScannerCheckpoint; | 64 TokenPreloadScannerCheckpoint preloadScannerCheckpoint; |
65 String unparsedInput; | 65 String unparsedInput; |
66 }; | 66 }; |
67 | 67 |
68 void acceptData(const char* data, int dataLength); | |
69 | |
68 void appendBytes(PassOwnPtr<Vector<char> >); | 70 void appendBytes(PassOwnPtr<Vector<char> >); |
abarth-chromium
2014/03/10 21:52:20
We might want to rename this function so that it's
oystein (OOO til 10th of July)
2014/03/17 21:19:11
Done.
| |
69 void setDecoder(PassOwnPtr<TextResourceDecoder>); | 71 void setDecoder(PassOwnPtr<TextResourceDecoder>); |
70 void flush(); | 72 void flush(); |
71 void resumeFrom(PassOwnPtr<Checkpoint>); | 73 void resumeFrom(PassOwnPtr<Checkpoint>); |
72 void startedChunkWithCheckpoint(HTMLInputCheckpoint); | 74 void startedChunkWithCheckpoint(HTMLInputCheckpoint); |
73 void finish(); | 75 void finish(); |
74 void stop(); | 76 void stop(); |
75 | 77 |
76 void forcePlaintextForTextDocument(); | 78 void forcePlaintextForTextDocument(); |
77 | 79 |
78 private: | 80 private: |
(...skipping 21 matching lines...) Expand all Loading... | |
100 | 102 |
101 OwnPtr<XSSAuditor> m_xssAuditor; | 103 OwnPtr<XSSAuditor> m_xssAuditor; |
102 OwnPtr<TokenPreloadScanner> m_preloadScanner; | 104 OwnPtr<TokenPreloadScanner> m_preloadScanner; |
103 OwnPtr<TextResourceDecoder> m_decoder; | 105 OwnPtr<TextResourceDecoder> m_decoder; |
104 DocumentEncodingData m_lastSeenEncodingData; | 106 DocumentEncodingData m_lastSeenEncodingData; |
105 }; | 107 }; |
106 | 108 |
107 } | 109 } |
108 | 110 |
109 #endif | 111 #endif |
OLD | NEW |