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

Side by Side Diff: third_party/WebKit/Source/core/page/PageSerializer.h

Issue 1371323003: Escape "--" in the page URL at page serialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2015-09-30T19:11:33 Follow review comments Created 5 years, 2 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/page/PageSerializer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // vector is the top frame serialized content. 77 // vector is the top frame serialized content.
78 void serialize(Page*); 78 void serialize(Page*);
79 79
80 void registerRewriteURL(const String& from, const String& to); 80 void registerRewriteURL(const String& from, const String& to);
81 void setRewriteURLFolder(const String&); 81 void setRewriteURLFolder(const String&);
82 82
83 KURL urlForBlankFrame(LocalFrame*); 83 KURL urlForBlankFrame(LocalFrame*);
84 84
85 Delegate* delegate(); 85 Delegate* delegate();
86 86
87 static String markOfTheWebDeclaration(const KURL&);
88
87 private: 89 private:
88 void serializeFrame(LocalFrame*); 90 void serializeFrame(LocalFrame*);
89 91
90 // Serializes the stylesheet back to text and adds it to the resources if UR L is not-empty. 92 // Serializes the stylesheet back to text and adds it to the resources if UR L is not-empty.
91 // It also adds any resources included in that stylesheet (including any imp orted stylesheets and their own resources). 93 // It also adds any resources included in that stylesheet (including any imp orted stylesheets and their own resources).
92 void serializeCSSStyleSheet(CSSStyleSheet&, const KURL&); 94 void serializeCSSStyleSheet(CSSStyleSheet&, const KURL&);
93 95
94 // Serializes the css rule (including any imported stylesheets), adding refe renced resources. 96 // Serializes the css rule (including any imported stylesheets), adding refe renced resources.
95 void serializeCSSRule(CSSRule*); 97 void serializeCSSRule(CSSRule*);
96 98
(...skipping 14 matching lines...) Expand all
111 HashMap<String, String> m_rewriteURLs; 113 HashMap<String, String> m_rewriteURLs;
112 String m_rewriteFolder; 114 String m_rewriteFolder;
113 unsigned m_blankFrameCounter; 115 unsigned m_blankFrameCounter;
114 116
115 OwnPtr<Delegate> m_delegate; 117 OwnPtr<Delegate> m_delegate;
116 }; 118 };
117 119
118 } // namespace blink 120 } // namespace blink
119 121
120 #endif // PageSerializer_h 122 #endif // PageSerializer_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/page/PageSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698