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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 #include "core/editing/markup.h" | 87 #include "core/editing/markup.h" |
88 #include "core/html/HTMLAllCollection.h" | 88 #include "core/html/HTMLAllCollection.h" |
89 #include "core/html/HTMLElement.h" | 89 #include "core/html/HTMLElement.h" |
90 #include "core/html/HTMLFormElement.h" | 90 #include "core/html/HTMLFormElement.h" |
91 #include "core/html/HTMLHtmlElement.h" | 91 #include "core/html/HTMLHtmlElement.h" |
92 #include "core/html/HTMLMetaElement.h" | 92 #include "core/html/HTMLMetaElement.h" |
93 #include "core/loader/DocumentLoader.h" | 93 #include "core/loader/DocumentLoader.h" |
94 #include "core/loader/FrameLoader.h" | 94 #include "core/loader/FrameLoader.h" |
95 #include "public/platform/WebURL.h" | 95 #include "public/platform/WebURL.h" |
96 #include "public/platform/WebVector.h" | 96 #include "public/platform/WebVector.h" |
97 #include "weborigin/KURL.h" | 97 #include "platform/weborigin/KURL.h" |
98 #include "wtf/text/TextEncoding.h" | 98 #include "wtf/text/TextEncoding.h" |
99 | 99 |
100 using namespace WebCore; | 100 using namespace WebCore; |
101 | 101 |
102 namespace WebKit { | 102 namespace WebKit { |
103 | 103 |
104 // Maximum length of data buffer which is used to temporary save generated | 104 // Maximum length of data buffer which is used to temporary save generated |
105 // html content data. This is a soft limit which might be passed if a very large | 105 // html content data. This is a soft limit which might be passed if a very large |
106 // contegious string is found in the page. | 106 // contegious string is found in the page. |
107 static const unsigned dataBufferCapacity = 65536; | 107 static const unsigned dataBufferCapacity = 65536; |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 520 |
521 encodeAndFlushBuffer(WebPageSerializerClient::CurrentFrameIsFinished, &p
aram, ForceFlush); | 521 encodeAndFlushBuffer(WebPageSerializerClient::CurrentFrameIsFinished, &p
aram, ForceFlush); |
522 } | 522 } |
523 | 523 |
524 ASSERT(m_dataBuffer.isEmpty()); | 524 ASSERT(m_dataBuffer.isEmpty()); |
525 m_client->didSerializeDataForFrame(KURL(), WebCString("", 0), WebPageSeriali
zerClient::AllFramesAreFinished); | 525 m_client->didSerializeDataForFrame(KURL(), WebCString("", 0), WebPageSeriali
zerClient::AllFramesAreFinished); |
526 return didSerialization; | 526 return didSerialization; |
527 } | 527 } |
528 | 528 |
529 } // namespace WebKit | 529 } // namespace WebKit |
OLD | NEW |