OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 GetDocument()->IsSandboxed(kSandboxOrigin) | 686 GetDocument()->IsSandboxed(kSandboxOrigin) |
687 ? SecurityOrigin::Create(execution_context_->Url()) | 687 ? SecurityOrigin::Create(execution_context_->Url()) |
688 : execution_context_->GetSecurityOrigin()); | 688 : execution_context_->GetSecurityOrigin()); |
689 } | 689 } |
690 } | 690 } |
691 | 691 |
692 MHTMLArchive* FrameFetchContext::Archive() const { | 692 MHTMLArchive* FrameFetchContext::Archive() const { |
693 DCHECK(!IsMainFrame()); | 693 DCHECK(!IsMainFrame()); |
694 // TODO(nasko): How should this work with OOPIF? | 694 // TODO(nasko): How should this work with OOPIF? |
695 // The MHTMLArchive is parsed as a whole, but can be constructed from frames | 695 // The MHTMLArchive is parsed as a whole, but can be constructed from frames |
696 // in mutliple processes. In that case, which process should parse it and how | 696 // in multiple processes. In that case, which process should parse it and how |
697 // should the output be spread back across multiple processes? | 697 // should the output be spread back across multiple processes? |
698 if (!GetFrame()->Tree().Parent()->IsLocalFrame()) | 698 if (!GetFrame()->Tree().Parent()->IsLocalFrame()) |
699 return nullptr; | 699 return nullptr; |
700 return ToLocalFrame(GetFrame()->Tree().Parent()) | 700 return ToLocalFrame(GetFrame()->Tree().Parent()) |
701 ->Loader() | 701 ->Loader() |
702 .GetDocumentLoader() | 702 .GetDocumentLoader() |
703 ->Fetcher() | 703 ->Fetcher() |
704 ->Archive(); | 704 ->Archive(); |
705 } | 705 } |
706 | 706 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 std::unique_ptr<WebURLLoader> FrameFetchContext::CreateURLLoader() { | 775 std::unique_ptr<WebURLLoader> FrameFetchContext::CreateURLLoader() { |
776 return Platform::Current()->CreateURLLoader(); | 776 return Platform::Current()->CreateURLLoader(); |
777 } | 777 } |
778 | 778 |
779 DEFINE_TRACE(FrameFetchContext) { | 779 DEFINE_TRACE(FrameFetchContext) { |
780 visitor->Trace(document_loader_); | 780 visitor->Trace(document_loader_); |
781 BaseFetchContext::Trace(visitor); | 781 BaseFetchContext::Trace(visitor); |
782 } | 782 } |
783 | 783 |
784 } // namespace blink | 784 } // namespace blink |
OLD | NEW |