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