| 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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 GetDocument()->IsSandboxed(kSandboxOrigin) | 668 GetDocument()->IsSandboxed(kSandboxOrigin) |
| 669 ? SecurityOrigin::Create(execution_context_->Url()) | 669 ? SecurityOrigin::Create(execution_context_->Url()) |
| 670 : execution_context_->GetSecurityOrigin()); | 670 : execution_context_->GetSecurityOrigin()); |
| 671 } | 671 } |
| 672 } | 672 } |
| 673 | 673 |
| 674 MHTMLArchive* FrameFetchContext::Archive() const { | 674 MHTMLArchive* FrameFetchContext::Archive() const { |
| 675 DCHECK(!IsMainFrame()); | 675 DCHECK(!IsMainFrame()); |
| 676 // TODO(nasko): How should this work with OOPIF? | 676 // TODO(nasko): How should this work with OOPIF? |
| 677 // The MHTMLArchive is parsed as a whole, but can be constructed from frames | 677 // The MHTMLArchive is parsed as a whole, but can be constructed from frames |
| 678 // in mutliple processes. In that case, which process should parse it and how | 678 // in multiple processes. In that case, which process should parse it and how |
| 679 // should the output be spread back across multiple processes? | 679 // should the output be spread back across multiple processes? |
| 680 if (!GetFrame()->Tree().Parent()->IsLocalFrame()) | 680 if (!GetFrame()->Tree().Parent()->IsLocalFrame()) |
| 681 return nullptr; | 681 return nullptr; |
| 682 return ToLocalFrame(GetFrame()->Tree().Parent()) | 682 return ToLocalFrame(GetFrame()->Tree().Parent()) |
| 683 ->Loader() | 683 ->Loader() |
| 684 .GetDocumentLoader() | 684 .GetDocumentLoader() |
| 685 ->Fetcher() | 685 ->Fetcher() |
| 686 ->Archive(); | 686 ->Archive(); |
| 687 } | 687 } |
| 688 | 688 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 std::unique_ptr<WebURLLoader> FrameFetchContext::CreateURLLoader() { | 770 std::unique_ptr<WebURLLoader> FrameFetchContext::CreateURLLoader() { |
| 771 return Platform::Current()->CreateURLLoader(); | 771 return Platform::Current()->CreateURLLoader(); |
| 772 } | 772 } |
| 773 | 773 |
| 774 DEFINE_TRACE(FrameFetchContext) { | 774 DEFINE_TRACE(FrameFetchContext) { |
| 775 visitor->Trace(document_loader_); | 775 visitor->Trace(document_loader_); |
| 776 BaseFetchContext::Trace(visitor); | 776 BaseFetchContext::Trace(visitor); |
| 777 } | 777 } |
| 778 | 778 |
| 779 } // namespace blink | 779 } // namespace blink |
| OLD | NEW |