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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameSerializer.h

Issue 2220543002: Make Resource::resourceBuffer() to return PassRefPtr<const SharedBuffer> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WTF_UseIsConvertibleInEnsure
Patch Set: Rebase Created 4 years, 3 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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 private: 116 private:
117 // Serializes the stylesheet back to text and adds it to the resources if UR L is not-empty. 117 // Serializes the stylesheet back to text and adds it to the resources if UR L is not-empty.
118 // It also adds any resources included in that stylesheet (including any imp orted stylesheets and their own resources). 118 // It also adds any resources included in that stylesheet (including any imp orted stylesheets and their own resources).
119 void serializeCSSStyleSheet(CSSStyleSheet&, const KURL&); 119 void serializeCSSStyleSheet(CSSStyleSheet&, const KURL&);
120 120
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<const SharedBuffer>, const K URL&);
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(const 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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/frame/FrameSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698