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/html/HTMLElement.h" | 87 #include "core/html/HTMLElement.h" |
88 #include "core/html/HTMLFormElement.h" | 88 #include "core/html/HTMLFormElement.h" |
89 #include "core/html/HTMLHtmlElement.h" | 89 #include "core/html/HTMLHtmlElement.h" |
90 #include "core/html/HTMLMetaElement.h" | 90 #include "core/html/HTMLMetaElement.h" |
91 #include "core/loader/DocumentLoader.h" | 91 #include "core/loader/DocumentLoader.h" |
92 #include "core/loader/FrameLoader.h" | 92 #include "core/loader/FrameLoader.h" |
93 #include "public/platform/WebVector.h" | 93 #include "public/platform/WebVector.h" |
94 #include "web/WebLocalFrameImpl.h" | 94 #include "web/WebLocalFrameImpl.h" |
95 #include "wtf/text/TextEncoding.h" | 95 #include "wtf/text/TextEncoding.h" |
96 | 96 |
97 using namespace blink; | |
98 | |
99 namespace blink { | 97 namespace blink { |
100 | 98 |
101 // Maximum length of data buffer which is used to temporary save generated | 99 // Maximum length of data buffer which is used to temporary save generated |
102 // html content data. This is a soft limit which might be passed if a very large | 100 // html content data. This is a soft limit which might be passed if a very large |
103 // contegious string is found in the page. | 101 // contegious string is found in the page. |
104 static const unsigned dataBufferCapacity = 65536; | 102 static const unsigned dataBufferCapacity = 65536; |
105 | 103 |
106 WebPageSerializerImpl::SerializeDomParam::SerializeDomParam(const KURL& url, | 104 WebPageSerializerImpl::SerializeDomParam::SerializeDomParam(const KURL& url, |
107 const WTF::TextEncod
ing& textEncoding, | 105 const WTF::TextEncod
ing& textEncoding, |
108 Document* document, | 106 Document* document, |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 512 |
515 encodeAndFlushBuffer(WebPageSerializerClient::CurrentFrameIsFinished, &p
aram, ForceFlush); | 513 encodeAndFlushBuffer(WebPageSerializerClient::CurrentFrameIsFinished, &p
aram, ForceFlush); |
516 } | 514 } |
517 | 515 |
518 ASSERT(m_dataBuffer.isEmpty()); | 516 ASSERT(m_dataBuffer.isEmpty()); |
519 m_client->didSerializeDataForFrame(KURL(), WebCString("", 0), WebPageSeriali
zerClient::AllFramesAreFinished); | 517 m_client->didSerializeDataForFrame(KURL(), WebCString("", 0), WebPageSeriali
zerClient::AllFramesAreFinished); |
520 return didSerialization; | 518 return didSerialization; |
521 } | 519 } |
522 | 520 |
523 } // namespace blink | 521 } // namespace blink |
OLD | NEW |