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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Serializes the css rule (including any imported stylesheets), adding refe
renced resources. | 93 // Serializes the css rule (including any imported stylesheets), adding refe
renced resources. |
94 void serializeCSSRule(CSSRule*); | 94 void serializeCSSRule(CSSRule*); |
95 | 95 |
96 bool shouldAddURL(const KURL&); | 96 bool shouldAddURL(const KURL&); |
97 | 97 |
98 void addToResources(Resource *, PassRefPtr<SharedBuffer>, const KURL&); | 98 void addToResources(Resource *, PassRefPtr<SharedBuffer>, const KURL&); |
99 void addImageToResources(ImageResource*, LayoutObject*, const KURL&); | 99 void addImageToResources(ImageResource*, LayoutObject*, const KURL&); |
100 void addFontToResources(FontResource*); | 100 void addFontToResources(FontResource*); |
101 | 101 |
102 void retrieveResourcesForProperties(const StylePropertySet*, Document&); | 102 void retrieveResourcesForProperties(const StylePropertySet*, Document&); |
103 void retrieveResourcesForCSSValue(CSSValue*, Document&); | 103 void retrieveResourcesForCSSValue(CSSValue, Document&); |
104 | 104 |
105 Vector<SerializedResource>* m_resources; | 105 Vector<SerializedResource>* m_resources; |
106 ListHashSet<KURL> m_resourceURLs; | 106 ListHashSet<KURL> m_resourceURLs; |
107 | 107 |
108 using BlankFrameURLMap = WillBeHeapHashMap<RawPtrWillBeMember<LocalFrame>, K
URL>; | 108 using BlankFrameURLMap = WillBeHeapHashMap<RawPtrWillBeMember<LocalFrame>, K
URL>; |
109 BlankFrameURLMap m_blankFrameURLs; | 109 BlankFrameURLMap m_blankFrameURLs; |
110 HashMap<String, String> m_rewriteURLs; | 110 HashMap<String, String> m_rewriteURLs; |
111 String m_rewriteFolder; | 111 String m_rewriteFolder; |
112 unsigned m_blankFrameCounter; | 112 unsigned m_blankFrameCounter; |
113 | 113 |
114 OwnPtr<Delegate> m_delegate; | 114 OwnPtr<Delegate> m_delegate; |
115 }; | 115 }; |
116 | 116 |
117 } // namespace blink | 117 } // namespace blink |
118 | 118 |
119 #endif // PageSerializer_h | 119 #endif // PageSerializer_h |
OLD | NEW |