Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 // file path. | 95 // file path. |
| 96 typedef HashMap<WTF::String, WTF::String> LinkLocalPathMap; | 96 typedef HashMap<WTF::String, WTF::String> LinkLocalPathMap; |
| 97 // local_links_ include all pair of local resource path and corresponding | 97 // local_links_ include all pair of local resource path and corresponding |
| 98 // original link. | 98 // original link. |
| 99 LinkLocalPathMap m_localLinks; | 99 LinkLocalPathMap m_localLinks; |
| 100 // Data buffer for saving result of serialized DOM data. | 100 // Data buffer for saving result of serialized DOM data. |
| 101 StringBuilder m_dataBuffer; | 101 StringBuilder m_dataBuffer; |
| 102 // Local directory name of all local resource files. | 102 // Local directory name of all local resource files. |
| 103 WTF::String m_localDirectoryName; | 103 WTF::String m_localDirectoryName; |
| 104 | 104 |
| 105 // Tracks whether we've encoded any bytes yet. | |
| 106 bool m_noBytesEncodedYet; | |
|
jsbell
2015/12/07 22:53:51
Can you flip the semantics of this so that it star
| |
| 107 | |
| 105 // Web entities conversion maps. | 108 // Web entities conversion maps. |
| 106 WebEntities m_htmlEntities; | 109 WebEntities m_htmlEntities; |
| 107 WebEntities m_xmlEntities; | 110 WebEntities m_xmlEntities; |
| 108 | 111 |
| 109 class SerializeDomParam { | 112 class SerializeDomParam { |
| 110 STACK_ALLOCATED(); | 113 STACK_ALLOCATED(); |
| 111 public: | 114 public: |
| 112 SerializeDomParam(const KURL&, const WTF::TextEncoding&, Document*, cons t WTF::String& directoryName); | 115 SerializeDomParam(const KURL&, const WTF::TextEncoding&, Document*, cons t WTF::String& directoryName); |
| 113 | 116 |
| 114 const KURL& url; | 117 const KURL& url; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 void endTagToString(Element*, | 174 void endTagToString(Element*, |
| 172 SerializeDomParam* param); | 175 SerializeDomParam* param); |
| 173 // Build content for a specified node | 176 // Build content for a specified node |
| 174 void buildContentForNode(Node*, | 177 void buildContentForNode(Node*, |
| 175 SerializeDomParam* param); | 178 SerializeDomParam* param); |
| 176 }; | 179 }; |
| 177 | 180 |
| 178 } // namespace blink | 181 } // namespace blink |
| 179 | 182 |
| 180 #endif | 183 #endif |
| OLD | NEW |