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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // Serializes the css rule (including any imported stylesheets), adding refe
renced resources. | 121 // Serializes the css rule (including any imported stylesheets), adding refe
renced resources. |
122 void serializeCSSRule(CSSRule*); | 122 void serializeCSSRule(CSSRule*); |
123 | 123 |
124 bool shouldAddURL(const KURL&); | 124 bool shouldAddURL(const KURL&); |
125 | 125 |
126 void addToResources(const Resource&, PassRefPtr<SharedBuffer>, const KURL&); | 126 void addToResources(const Resource&, PassRefPtr<SharedBuffer>, const KURL&); |
127 void addImageToResources(ImageResource*, const KURL&); | 127 void addImageToResources(ImageResource*, const KURL&); |
128 void addFontToResources(FontResource*); | 128 void addFontToResources(FontResource*); |
129 | 129 |
130 void retrieveResourcesForProperties(const StylePropertySet*, Document&); | 130 void retrieveResourcesForProperties(const StylePropertySet*, Document&); |
131 void retrieveResourcesForCSSValue(CSSValue*, Document&); | 131 void retrieveResourcesForCSSValue(const CSSValue*, Document&); |
132 | 132 |
133 Vector<SerializedResource>* m_resources; | 133 Vector<SerializedResource>* m_resources; |
134 HashSet<KURL> m_resourceURLs; | 134 HashSet<KURL> m_resourceURLs; |
135 | 135 |
136 Delegate& m_delegate; | 136 Delegate& m_delegate; |
137 }; | 137 }; |
138 | 138 |
139 } // namespace blink | 139 } // namespace blink |
140 | 140 |
141 #endif // FrameSerializer_h | 141 #endif // FrameSerializer_h |
OLD | NEW |