| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |