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

Side by Side Diff: public/web/WebPageSerializer.h

Issue 1177733003: Merge page serializers [12/12] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 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/web/web.gypi ('k') | public/web/WebPageSerializerClient.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) 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // The parameter localDirectoryName is relative path of directory which 90 // The parameter localDirectoryName is relative path of directory which
91 // contain all saved auxiliary files included all sub frames and resources. 91 // contain all saved auxiliary files included all sub frames and resources.
92 BLINK_EXPORT static bool serialize( 92 BLINK_EXPORT static bool serialize(
93 WebLocalFrame*, 93 WebLocalFrame*,
94 bool recursive, 94 bool recursive,
95 WebPageSerializerClient*, 95 WebPageSerializerClient*,
96 const WebVector<WebURL>& links, 96 const WebVector<WebURL>& links,
97 const WebVector<WebString>& localPaths, 97 const WebVector<WebString>& localPaths,
98 const WebString& localDirectoryName); 98 const WebString& localDirectoryName);
99 99
100 // Retrieve all the resource for the passed view, including the main frame
101 // and sub-frames. Returns true if all resources were retrieved
102 // successfully.
103 BLINK_EXPORT static bool retrieveAllResources(WebView*,
104 const WebVector<WebCString>& supportedSchemes,
105 WebVector<WebURL>* resources,
106 WebVector<WebURL>* frames);
107
108 // FIXME: The following are here for unit testing purposes. Consider 100 // FIXME: The following are here for unit testing purposes. Consider
109 // changing the unit tests instead. 101 // changing the unit tests instead.
110 102
111 // Generate the META for charset declaration. 103 // Generate the META for charset declaration.
112 BLINK_EXPORT static WebString generateMetaCharsetDeclaration(const WebString & charset); 104 BLINK_EXPORT static WebString generateMetaCharsetDeclaration(const WebString & charset);
113 // Generate the MOTW declaration. 105 // Generate the MOTW declaration.
114 BLINK_EXPORT static WebString generateMarkOfTheWebDeclaration(const WebURL&) ; 106 BLINK_EXPORT static WebString generateMarkOfTheWebDeclaration(const WebURL&) ;
115 // Generate the default base tag declaration. 107 // Generate the default base tag declaration.
116 BLINK_EXPORT static WebString generateBaseTagDeclaration(const WebString& ba seTarget); 108 BLINK_EXPORT static WebString generateBaseTagDeclaration(const WebString& ba seTarget);
117 }; 109 };
118 110
119 } // namespace blink 111 } // namespace blink
120 112
121 #endif 113 #endif
OLDNEW
« no previous file with comments | « Source/web/web.gypi ('k') | public/web/WebPageSerializerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698