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

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

Issue 1304063005: Make classes and structures in core/page fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/core/page/DragSession.h ('k') | Source/core/page/PrintContext.h » ('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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class StylePropertySet; 57 class StylePropertySet;
58 58
59 struct SerializedResource; 59 struct SerializedResource;
60 60
61 // This class is used to serialize a page contents back to text (typically HTML) . 61 // This class is used to serialize a page contents back to text (typically HTML) .
62 // It serializes all the page frames and retrieves resources such as images and CSS stylesheets. 62 // It serializes all the page frames and retrieves resources such as images and CSS stylesheets.
63 class CORE_EXPORT PageSerializer final { 63 class CORE_EXPORT PageSerializer final {
64 STACK_ALLOCATED(); 64 STACK_ALLOCATED();
65 public: 65 public:
66 class Delegate { 66 class Delegate {
67 WTF_MAKE_FAST_ALLOCATED(Delegate);
67 public: 68 public:
68 virtual ~Delegate() { } 69 virtual ~Delegate() { }
69 virtual bool shouldIgnoreAttribute(const Attribute&) = 0; 70 virtual bool shouldIgnoreAttribute(const Attribute&) = 0;
70 }; 71 };
71 72
72 PageSerializer(Vector<SerializedResource>*, PassOwnPtr<Delegate>); 73 PageSerializer(Vector<SerializedResource>*, PassOwnPtr<Delegate>);
73 74
74 // Initiates the serialization of the frame's page. All serialized content a nd retrieved 75 // Initiates the serialization of the frame's page. All serialized content a nd retrieved
75 // resources are added to the Vector passed to the constructor. The first re source in that 76 // resources are added to the Vector passed to the constructor. The first re source in that
76 // vector is the top frame serialized content. 77 // vector is the top frame serialized content.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 HashMap<String, String> m_rewriteURLs; 111 HashMap<String, String> m_rewriteURLs;
111 String m_rewriteFolder; 112 String m_rewriteFolder;
112 unsigned m_blankFrameCounter; 113 unsigned m_blankFrameCounter;
113 114
114 OwnPtr<Delegate> m_delegate; 115 OwnPtr<Delegate> m_delegate;
115 }; 116 };
116 117
117 } // namespace blink 118 } // namespace blink
118 119
119 #endif // PageSerializer_h 120 #endif // PageSerializer_h
OLDNEW
« no previous file with comments | « Source/core/page/DragSession.h ('k') | Source/core/page/PrintContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698