| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 { | 232 { |
| 233 WebPageSerializerImpl serializerImpl( | 233 WebPageSerializerImpl serializerImpl( |
| 234 frame, recursive, client, links, localPaths, localDirectoryName); | 234 frame, recursive, client, links, localPaths, localDirectoryName); |
| 235 return serializerImpl.serialize(); | 235 return serializerImpl.serialize(); |
| 236 } | 236 } |
| 237 | 237 |
| 238 bool WebPageSerializer::retrieveAllResources(WebView* view, | 238 bool WebPageSerializer::retrieveAllResources(WebView* view, |
| 239 const WebVector<WebCString>& suppor
tedSchemes, | 239 const WebVector<WebCString>& suppor
tedSchemes, |
| 240 WebVector<WebURL>* resourceURLs, | 240 WebVector<WebURL>* resourceURLs, |
| 241 WebVector<WebURL>* frameURLs) { | 241 WebVector<WebURL>* frameURLs) { |
| 242 WebFrameImpl* mainFrame = static_cast<WebFrameImpl*>(view->mainFrame()); | 242 WebFrameImpl* mainFrame = toWebFrameImpl(view->mainFrame()); |
| 243 if (!mainFrame) | 243 if (!mainFrame) |
| 244 return false; | 244 return false; |
| 245 | 245 |
| 246 Vector<Frame*> framesToVisit; | 246 Vector<Frame*> framesToVisit; |
| 247 Vector<Frame*> visitedFrames; | 247 Vector<Frame*> visitedFrames; |
| 248 Vector<KURL> frameKURLs; | 248 Vector<KURL> frameKURLs; |
| 249 Vector<KURL> resourceKURLs; | 249 Vector<KURL> resourceKURLs; |
| 250 | 250 |
| 251 // Let's retrieve the resources from every frame in this page. | 251 // Let's retrieve the resources from every frame in this page. |
| 252 framesToVisit.append(mainFrame->frame()); | 252 framesToVisit.append(mainFrame->frame()); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 | 292 |
| 293 WebString WebPageSerializer::generateBaseTagDeclaration(const WebString& baseTar
get) | 293 WebString WebPageSerializer::generateBaseTagDeclaration(const WebString& baseTar
get) |
| 294 { | 294 { |
| 295 if (baseTarget.isEmpty()) | 295 if (baseTarget.isEmpty()) |
| 296 return String("<base href=\".\">"); | 296 return String("<base href=\".\">"); |
| 297 String baseString = "<base href=\".\" target=\"" + static_cast<const String&
>(baseTarget) + "\">"; | 297 String baseString = "<base href=\".\" target=\"" + static_cast<const String&
>(baseTarget) + "\">"; |
| 298 return baseString; | 298 return baseString; |
| 299 } | 299 } |
| 300 | 300 |
| 301 } // namespace WebKit | 301 } // namespace WebKit |
| OLD | NEW |