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 WebCore; | 97 using namespace blink; |
98 | 98 |
99 namespace blink { | 99 namespace blink { |
100 | 100 |
101 // Maximum length of data buffer which is used to temporary save generated | 101 // 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 | 102 // html content data. This is a soft limit which might be passed if a very large |
103 // contegious string is found in the page. | 103 // contegious string is found in the page. |
104 static const unsigned dataBufferCapacity = 65536; | 104 static const unsigned dataBufferCapacity = 65536; |
105 | 105 |
106 WebPageSerializerImpl::SerializeDomParam::SerializeDomParam(const KURL& url, | 106 WebPageSerializerImpl::SerializeDomParam::SerializeDomParam(const KURL& url, |
107 const WTF::TextEncod
ing& textEncoding, | 107 const WTF::TextEncod
ing& textEncoding, |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 | 515 |
516 encodeAndFlushBuffer(WebPageSerializerClient::CurrentFrameIsFinished, &p
aram, ForceFlush); | 516 encodeAndFlushBuffer(WebPageSerializerClient::CurrentFrameIsFinished, &p
aram, ForceFlush); |
517 } | 517 } |
518 | 518 |
519 ASSERT(m_dataBuffer.isEmpty()); | 519 ASSERT(m_dataBuffer.isEmpty()); |
520 m_client->didSerializeDataForFrame(KURL(), WebCString("", 0), WebPageSeriali
zerClient::AllFramesAreFinished); | 520 m_client->didSerializeDataForFrame(KURL(), WebCString("", 0), WebPageSeriali
zerClient::AllFramesAreFinished); |
521 return didSerialization; | 521 return didSerialization; |
522 } | 522 } |
523 | 523 |
524 } // namespace blink | 524 } // namespace blink |
OLD | NEW |