| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // How we handle the base tag better. | 5 // How we handle the base tag better. |
| 6 // Current status: | 6 // Current status: |
| 7 // At now the normal way we use to handling base tag is | 7 // At now the normal way we use to handling base tag is |
| 8 // a) For those links which have corresponding local saved files, such as | 8 // a) For those links which have corresponding local saved files, such as |
| 9 // savable CSS, JavaScript files, they will be written to relative URLs which | 9 // savable CSS, JavaScript files, they will be written to relative URLs which |
| 10 // point to local saved file. Why those links can not be resolved as absolute | 10 // point to local saved file. Why those links can not be resolved as absolute |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #include "webkit/glue/dom_serializer.h" | 73 #include "webkit/glue/dom_serializer.h" |
| 74 | 74 |
| 75 #include "base/string_util.h" | 75 #include "base/string_util.h" |
| 76 #include "webkit/glue/dom_operations.h" | 76 #include "webkit/glue/dom_operations.h" |
| 77 #include "webkit/glue/dom_operations_private.h" | 77 #include "webkit/glue/dom_operations_private.h" |
| 78 #include "webkit/glue/dom_serializer_delegate.h" | 78 #include "webkit/glue/dom_serializer_delegate.h" |
| 79 #include "webkit/glue/entity_map.h" | 79 #include "webkit/glue/entity_map.h" |
| 80 #include "webkit/glue/glue_util.h" | 80 #include "webkit/glue/glue_util.h" |
| 81 #include "webkit/glue/webframe_impl.h" | 81 #include "webkit/glue/webframe_impl.h" |
| 82 | 82 |
| 83 using WebKit::WebFrame; |
| 84 |
| 83 namespace { | 85 namespace { |
| 84 | 86 |
| 85 // Default "mark of the web" declaration | 87 // Default "mark of the web" declaration |
| 86 static const char* const kDefaultMarkOfTheWeb = | 88 static const char* const kDefaultMarkOfTheWeb = |
| 87 "\n<!-- saved from url=(%04d)%s -->\n"; | 89 "\n<!-- saved from url=(%04d)%s -->\n"; |
| 88 | 90 |
| 89 // Default meat content for writing correct charset declaration. | 91 // Default meat content for writing correct charset declaration. |
| 90 static const wchar_t* const kDefaultMetaContent = | 92 static const wchar_t* const kDefaultMetaContent = |
| 91 L"<META http-equiv=\"Content-Type\" content=\"text/html; charset=%ls\">"; | 93 L"<META http-equiv=\"Content-Type\" content=\"text/html; charset=%ls\">"; |
| 92 | 94 |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 // We have done call frames, so we send message to embedder to tell it that | 613 // We have done call frames, so we send message to embedder to tell it that |
| 612 // frames are finished serializing. | 614 // frames are finished serializing. |
| 613 DCHECK(data_buffer_.empty()); | 615 DCHECK(data_buffer_.empty()); |
| 614 delegate_->DidSerializeDataForFrame(GURL(), data_buffer_, | 616 delegate_->DidSerializeDataForFrame(GURL(), data_buffer_, |
| 615 DomSerializerDelegate::ALL_FRAMES_ARE_FINISHED); | 617 DomSerializerDelegate::ALL_FRAMES_ARE_FINISHED); |
| 616 | 618 |
| 617 return did_serialization; | 619 return did_serialization; |
| 618 } | 620 } |
| 619 | 621 |
| 620 } // namespace webkit_glue | 622 } // namespace webkit_glue |
| OLD | NEW |