| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // | 96 // |
| 97 // Return false means if no data has been serialized (i.e. because | 97 // Return false means if no data has been serialized (i.e. because |
| 98 // the target frame didn't have a valid url). | 98 // the target frame didn't have a valid url). |
| 99 // | 99 // |
| 100 // The parameter frame specifies which frame need to be serialized. | 100 // The parameter frame specifies which frame need to be serialized. |
| 101 // The parameter client specifies the pointer of interface | 101 // The parameter client specifies the pointer of interface |
| 102 // WebPageSerializerClient providing a sink interface to receive the | 102 // WebPageSerializerClient providing a sink interface to receive the |
| 103 // individual chunks of data to be saved. | 103 // individual chunks of data to be saved. |
| 104 // The parameter urlsToLocalPaths contains a mapping between original URLs | 104 // The parameter urlsToLocalPaths contains a mapping between original URLs |
| 105 // of saved resources and corresponding local file paths. | 105 // of saved resources and corresponding local file paths. |
| 106 // The parameter framesToLocalPaths contains a mapping between frames and |
| 107 // corresponding local file paths. |
| 106 BLINK_EXPORT static bool serialize( | 108 BLINK_EXPORT static bool serialize( |
| 107 WebLocalFrame*, | 109 WebLocalFrame*, |
| 108 WebPageSerializerClient*, | 110 WebPageSerializerClient*, |
| 109 const WebVector<std::pair<WebURL, WebString>>& urlsToLocalPaths); | 111 const WebVector<std::pair<WebURL, WebString>>& urlsToLocalPaths, |
| 112 const WebVector<std::pair<WebFrame*, WebString>>& framesToLocalPaths); |
| 110 | 113 |
| 111 // FIXME: The following are here for unit testing purposes. Consider | 114 // FIXME: The following are here for unit testing purposes. Consider |
| 112 // changing the unit tests instead. | 115 // changing the unit tests instead. |
| 113 | 116 |
| 114 // Generate the META for charset declaration. | 117 // Generate the META for charset declaration. |
| 115 BLINK_EXPORT static WebString generateMetaCharsetDeclaration(const WebString
& charset); | 118 BLINK_EXPORT static WebString generateMetaCharsetDeclaration(const WebString
& charset); |
| 116 // Generate the MOTW declaration. | 119 // Generate the MOTW declaration. |
| 117 BLINK_EXPORT static WebString generateMarkOfTheWebDeclaration(const WebURL&)
; | 120 BLINK_EXPORT static WebString generateMarkOfTheWebDeclaration(const WebURL&)
; |
| 118 // Generate the default base tag declaration. | 121 // Generate the default base tag declaration. |
| 119 BLINK_EXPORT static WebString generateBaseTagDeclaration(const WebString& ba
seTarget); | 122 BLINK_EXPORT static WebString generateBaseTagDeclaration(const WebString& ba
seTarget); |
| 120 }; | 123 }; |
| 121 | 124 |
| 122 } // namespace blink | 125 } // namespace blink |
| 123 | 126 |
| 124 #endif | 127 #endif |
| OLD | NEW |