| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "core/loader/DocumentLoader.h" | 47 #include "core/loader/DocumentLoader.h" |
| 48 #include "platform/Histogram.h" | 48 #include "platform/Histogram.h" |
| 49 #include "platform/SerializedResource.h" | 49 #include "platform/SerializedResource.h" |
| 50 #include "platform/SharedBuffer.h" | 50 #include "platform/SharedBuffer.h" |
| 51 #include "platform/instrumentation/tracing/TraceEvent.h" | 51 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 52 #include "platform/loader/fetch/ResourceRequest.h" | 52 #include "platform/loader/fetch/ResourceRequest.h" |
| 53 #include "platform/loader/fetch/ResourceResponse.h" | 53 #include "platform/loader/fetch/ResourceResponse.h" |
| 54 #include "platform/mhtml/MHTMLArchive.h" | 54 #include "platform/mhtml/MHTMLArchive.h" |
| 55 #include "platform/mhtml/MHTMLParser.h" | 55 #include "platform/mhtml/MHTMLParser.h" |
| 56 #include "platform/weborigin/KURL.h" | 56 #include "platform/weborigin/KURL.h" |
| 57 #include "platform/wtf/Assertions.h" |
| 58 #include "platform/wtf/Deque.h" |
| 59 #include "platform/wtf/HashMap.h" |
| 60 #include "platform/wtf/HashSet.h" |
| 61 #include "platform/wtf/Noncopyable.h" |
| 62 #include "platform/wtf/Vector.h" |
| 63 #include "platform/wtf/text/StringConcatenate.h" |
| 57 #include "public/platform/WebString.h" | 64 #include "public/platform/WebString.h" |
| 58 #include "public/platform/WebURL.h" | 65 #include "public/platform/WebURL.h" |
| 59 #include "public/platform/WebURLResponse.h" | 66 #include "public/platform/WebURLResponse.h" |
| 60 #include "public/platform/WebVector.h" | 67 #include "public/platform/WebVector.h" |
| 61 #include "public/web/WebDataSource.h" | 68 #include "public/web/WebDataSource.h" |
| 62 #include "public/web/WebDocument.h" | 69 #include "public/web/WebDocument.h" |
| 63 #include "public/web/WebFrame.h" | 70 #include "public/web/WebFrame.h" |
| 64 #include "public/web/WebFrameSerializerCacheControlPolicy.h" | 71 #include "public/web/WebFrameSerializerCacheControlPolicy.h" |
| 65 #include "public/web/WebFrameSerializerClient.h" | 72 #include "public/web/WebFrameSerializerClient.h" |
| 66 #include "web/WebFrameSerializerImpl.h" | 73 #include "web/WebFrameSerializerImpl.h" |
| 67 #include "web/WebLocalFrameImpl.h" | 74 #include "web/WebLocalFrameImpl.h" |
| 68 #include "web/WebRemoteFrameImpl.h" | 75 #include "web/WebRemoteFrameImpl.h" |
| 69 #include "wtf/Assertions.h" | |
| 70 #include "wtf/Deque.h" | |
| 71 #include "wtf/HashMap.h" | |
| 72 #include "wtf/HashSet.h" | |
| 73 #include "wtf/Noncopyable.h" | |
| 74 #include "wtf/Vector.h" | |
| 75 #include "wtf/text/StringConcatenate.h" | |
| 76 | 76 |
| 77 namespace blink { | 77 namespace blink { |
| 78 | 78 |
| 79 namespace { | 79 namespace { |
| 80 | 80 |
| 81 const int kPopupOverlayZIndexThreshold = 50; | 81 const int kPopupOverlayZIndexThreshold = 50; |
| 82 | 82 |
| 83 class MHTMLFrameSerializerDelegate final : public FrameSerializer::Delegate { | 83 class MHTMLFrameSerializerDelegate final : public FrameSerializer::Delegate { |
| 84 WTF_MAKE_NONCOPYABLE(MHTMLFrameSerializerDelegate); | 84 WTF_MAKE_NONCOPYABLE(MHTMLFrameSerializerDelegate); |
| 85 | 85 |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 const WebString& baseTarget) { | 467 const WebString& baseTarget) { |
| 468 // TODO(yosin) We should call |FrameSerializer::baseTagDeclarationOf()|. | 468 // TODO(yosin) We should call |FrameSerializer::baseTagDeclarationOf()|. |
| 469 if (baseTarget.isEmpty()) | 469 if (baseTarget.isEmpty()) |
| 470 return String("<base href=\".\">"); | 470 return String("<base href=\".\">"); |
| 471 String baseString = "<base href=\".\" target=\"" + | 471 String baseString = "<base href=\".\" target=\"" + |
| 472 static_cast<const String&>(baseTarget) + "\">"; | 472 static_cast<const String&>(baseTarget) + "\">"; |
| 473 return baseString; | 473 return baseString; |
| 474 } | 474 } |
| 475 | 475 |
| 476 } // namespace blink | 476 } // namespace blink |
| OLD | NEW |