Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Side by Side Diff: webkit/glue/dom_serializer.cc

Issue 341030: Moves webview_impl.cc, webframe_impl.cc and webframeloaderclient_impl.cc into... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/dom_serializer.h ('k') | webkit/glue/dom_serializer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #include "KURL.h" 66 #include "KURL.h"
67 #include "markup.h" 67 #include "markup.h"
68 #include "PlatformString.h" 68 #include "PlatformString.h"
69 #include "TextEncoding.h" 69 #include "TextEncoding.h"
70 MSVC_POP_WARNING(); 70 MSVC_POP_WARNING();
71 #undef LOG 71 #undef LOG
72 72
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/api/src/WebFrameImpl.h"
76 #include "webkit/glue/dom_operations.h" 77 #include "webkit/glue/dom_operations.h"
77 #include "webkit/glue/dom_operations_private.h" 78 #include "webkit/glue/dom_operations_private.h"
78 #include "webkit/glue/dom_serializer_delegate.h" 79 #include "webkit/glue/dom_serializer_delegate.h"
79 #include "webkit/glue/entity_map.h" 80 #include "webkit/glue/entity_map.h"
80 #include "webkit/glue/glue_util.h" 81 #include "webkit/glue/glue_util.h"
81 #include "webkit/glue/webframe_impl.h"
82 82
83 using WebKit::WebFrame; 83 using WebKit::WebFrame;
84 using WebKit::WebFrameImpl;
84 85
85 namespace { 86 namespace {
86 87
87 // Default "mark of the web" declaration 88 // Default "mark of the web" declaration
88 static const char* const kDefaultMarkOfTheWeb = 89 static const char* const kDefaultMarkOfTheWeb =
89 "\n<!-- saved from url=(%04d)%s -->\n"; 90 "\n<!-- saved from url=(%04d)%s -->\n";
90 91
91 // Default meat content for writing correct charset declaration. 92 // Default meat content for writing correct charset declaration.
92 static const wchar_t* const kDefaultMetaContent = 93 static const wchar_t* const kDefaultMetaContent =
93 L"<META http-equiv=\"Content-Type\" content=\"text/html; charset=%ls\">"; 94 L"<META http-equiv=\"Content-Type\" content=\"text/html; charset=%ls\">";
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 // We have done call frames, so we send message to embedder to tell it that 614 // We have done call frames, so we send message to embedder to tell it that
614 // frames are finished serializing. 615 // frames are finished serializing.
615 DCHECK(data_buffer_.empty()); 616 DCHECK(data_buffer_.empty());
616 delegate_->DidSerializeDataForFrame(GURL(), data_buffer_, 617 delegate_->DidSerializeDataForFrame(GURL(), data_buffer_,
617 DomSerializerDelegate::ALL_FRAMES_ARE_FINISHED); 618 DomSerializerDelegate::ALL_FRAMES_ARE_FINISHED);
618 619
619 return did_serialization; 620 return did_serialization;
620 } 621 }
621 622
622 } // namespace webkit_glue 623 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/dom_serializer.h ('k') | webkit/glue/dom_serializer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698