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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 #include "core/frame/FrameSerializer.h" | 85 #include "core/frame/FrameSerializer.h" |
86 #include "core/html/HTMLAllCollection.h" | 86 #include "core/html/HTMLAllCollection.h" |
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/HTMLFrameElementBase.h" | 89 #include "core/html/HTMLFrameElementBase.h" |
90 #include "core/html/HTMLFrameOwnerElement.h" | 90 #include "core/html/HTMLFrameOwnerElement.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 "platform/wtf/text/TextEncoding.h" |
95 #include "public/platform/WebCString.h" | 96 #include "public/platform/WebCString.h" |
96 #include "public/platform/WebVector.h" | 97 #include "public/platform/WebVector.h" |
97 #include "web/WebLocalFrameImpl.h" | 98 #include "web/WebLocalFrameImpl.h" |
98 #include "wtf/text/TextEncoding.h" | |
99 | 99 |
100 namespace blink { | 100 namespace blink { |
101 | 101 |
102 // 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 |
103 // 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 |
104 // contegious string is found in the html document. | 104 // contegious string is found in the html document. |
105 static const unsigned dataBufferCapacity = 65536; | 105 static const unsigned dataBufferCapacity = 65536; |
106 | 106 |
107 WebFrameSerializerImpl::SerializeDomParam::SerializeDomParam( | 107 WebFrameSerializerImpl::SerializeDomParam::SerializeDomParam( |
108 const KURL& url, | 108 const KURL& url, |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 // Report empty contents for invalid URLs. | 480 // Report empty contents for invalid URLs. |
481 m_client->didSerializeDataForFrame( | 481 m_client->didSerializeDataForFrame( |
482 WebCString(), WebFrameSerializerClient::CurrentFrameIsFinished); | 482 WebCString(), WebFrameSerializerClient::CurrentFrameIsFinished); |
483 } | 483 } |
484 | 484 |
485 DCHECK(m_dataBuffer.isEmpty()); | 485 DCHECK(m_dataBuffer.isEmpty()); |
486 return didSerialization; | 486 return didSerialization; |
487 } | 487 } |
488 | 488 |
489 } // namespace blink | 489 } // namespace blink |
OLD | NEW |