| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015, Google Inc. All rights reserved. | 2 * Copyright (c) 2015, 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StubFrameOwner); | 75 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StubFrameOwner); |
| 76 public: | 76 public: |
| 77 static PassOwnPtrWillBeRawPtr<StubFrameOwner> create() | 77 static PassOwnPtrWillBeRawPtr<StubFrameOwner> create() |
| 78 { | 78 { |
| 79 return adoptPtrWillBeNoop(new StubFrameOwner); | 79 return adoptPtrWillBeNoop(new StubFrameOwner); |
| 80 } | 80 } |
| 81 | 81 |
| 82 DEFINE_INLINE_VIRTUAL_TRACE() { FrameOwner::trace(visitor); } | 82 DEFINE_INLINE_VIRTUAL_TRACE() { FrameOwner::trace(visitor); } |
| 83 | 83 |
| 84 bool isLocal() const override { return false; } | 84 bool isLocal() const override { return false; } |
| 85 SandboxFlags sandboxFlags() const override { return SandboxNone; } | 85 SandboxFlags getSandboxFlags() const override { return SandboxNone; } |
| 86 void dispatchLoad() override { } | 86 void dispatchLoad() override { } |
| 87 void renderFallbackContent() override { } | 87 void renderFallbackContent() override { } |
| 88 ScrollbarMode scrollingMode() const override { return ScrollbarAuto; } | 88 ScrollbarMode scrollingMode() const override { return ScrollbarAuto; } |
| 89 int marginWidth() const override { return -1; } | 89 int marginWidth() const override { return -1; } |
| 90 int marginHeight() const override { return -1; } | 90 int marginHeight() const override { return -1; } |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 class MockFrameLoaderClient : public EmptyFrameLoaderClient { | 93 class MockFrameLoaderClient : public EmptyFrameLoaderClient { |
| 94 public: | 94 public: |
| 95 MockFrameLoaderClient() | 95 MockFrameLoaderClient() |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 ResourceResponse response; | 574 ResourceResponse response; |
| 575 response.setURL(url); | 575 response.setURL(url); |
| 576 response.setSecurityInfo(securityInfo); | 576 response.setSecurityInfo(securityInfo); |
| 577 response.setHasMajorCertificateErrors(true); | 577 response.setHasMajorCertificateErrors(true); |
| 578 RefPtrWillBeRawPtr<Resource> resource = Resource::create(resourceRequest, Re
source::Image); | 578 RefPtrWillBeRawPtr<Resource> resource = Resource::create(resourceRequest, Re
source::Image); |
| 579 resource->setResponse(response); | 579 resource->setResponse(response); |
| 580 fetchContext->dispatchDidLoadResourceFromMemoryCache(resource.get(), WebURLR
equest::FrameTypeNone, WebURLRequest::RequestContextImage); | 580 fetchContext->dispatchDidLoadResourceFromMemoryCache(resource.get(), WebURLR
equest::FrameTypeNone, WebURLRequest::RequestContextImage); |
| 581 } | 581 } |
| 582 | 582 |
| 583 } // namespace blink | 583 } // namespace blink |
| OLD | NEW |