| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 #include "core/loader/FrameLoaderClient.h" | 35 #include "core/loader/FrameLoaderClient.h" |
| 36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 37 #include "platform/weborigin/KURL.h" | 37 #include "platform/weborigin/KURL.h" |
| 38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class WebLocalFrameImpl; | 43 class WebLocalFrameImpl; |
| 44 class WebPluginLoadObserver; | |
| 45 | 44 |
| 46 class FrameLoaderClientImpl final : public FrameLoaderClient { | 45 class FrameLoaderClientImpl final : public FrameLoaderClient { |
| 47 public: | 46 public: |
| 48 static PassOwnPtrWillBeRawPtr<FrameLoaderClientImpl> create(WebLocalFrameImp
l*); | 47 static PassOwnPtrWillBeRawPtr<FrameLoaderClientImpl> create(WebLocalFrameImp
l*); |
| 49 | 48 |
| 50 ~FrameLoaderClientImpl() override; | 49 ~FrameLoaderClientImpl() override; |
| 51 | 50 |
| 52 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
| 53 | 52 |
| 54 WebLocalFrameImpl* webFrame() const { return m_webFrame.get(); } | 53 WebLocalFrameImpl* webFrame() const { return m_webFrame.get(); } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 174 |
| 176 unsigned backForwardLength() override; | 175 unsigned backForwardLength() override; |
| 177 | 176 |
| 178 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable
rType) override; | 177 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable
rType) override; |
| 179 | 178 |
| 180 private: | 179 private: |
| 181 explicit FrameLoaderClientImpl(WebLocalFrameImpl*); | 180 explicit FrameLoaderClientImpl(WebLocalFrameImpl*); |
| 182 | 181 |
| 183 bool isFrameLoaderClientImpl() const override { return true; } | 182 bool isFrameLoaderClientImpl() const override { return true; } |
| 184 | 183 |
| 185 PassOwnPtrWillBeRawPtr<WebPluginLoadObserver> pluginLoadObserver(DocumentLoa
der*); | |
| 186 | |
| 187 // The WebFrame that owns this object and manages its lifetime. Therefore, | 184 // The WebFrame that owns this object and manages its lifetime. Therefore, |
| 188 // the web frame object is guaranteed to exist. | 185 // the web frame object is guaranteed to exist. |
| 189 RawPtrWillBeMember<WebLocalFrameImpl> m_webFrame; | 186 RawPtrWillBeMember<WebLocalFrameImpl> m_webFrame; |
| 190 }; | 187 }; |
| 191 | 188 |
| 192 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr
ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); | 189 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr
ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); |
| 193 | 190 |
| 194 } // namespace blink | 191 } // namespace blink |
| 195 | 192 |
| 196 #endif | 193 #endif |
| OLD | NEW |