| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 163 |
| 165 v8::Local<v8::Value> createTestInterface(const AtomicString& name) override; | 164 v8::Local<v8::Value> createTestInterface(const AtomicString& name) override; |
| 166 | 165 |
| 167 PassOwnPtr<WebServiceWorkerProvider> createServiceWorkerProvider() override; | 166 PassOwnPtr<WebServiceWorkerProvider> createServiceWorkerProvider() override; |
| 168 bool isControlledByServiceWorker(DocumentLoader&) override; | 167 bool isControlledByServiceWorker(DocumentLoader&) override; |
| 169 int64_t serviceWorkerID(DocumentLoader&) override; | 168 int64_t serviceWorkerID(DocumentLoader&) override; |
| 170 SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() override; | 169 SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() override; |
| 171 | 170 |
| 172 PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebApplicatio
nCacheHostClient*) override; | 171 PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebApplicatio
nCacheHostClient*) override; |
| 173 | 172 |
| 174 void didStopAllLoaders() override; | |
| 175 | |
| 176 void dispatchDidChangeManifest() override; | 173 void dispatchDidChangeManifest() override; |
| 177 | 174 |
| 178 unsigned backForwardLength() override; | 175 unsigned backForwardLength() override; |
| 179 | 176 |
| 180 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable
rType) override; | 177 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable
rType) override; |
| 181 | 178 |
| 182 private: | 179 private: |
| 183 explicit FrameLoaderClientImpl(WebLocalFrameImpl*); | 180 explicit FrameLoaderClientImpl(WebLocalFrameImpl*); |
| 184 | 181 |
| 185 bool isFrameLoaderClientImpl() const override { return true; } | 182 bool isFrameLoaderClientImpl() const override { return true; } |
| 186 | 183 |
| 187 PassOwnPtrWillBeRawPtr<WebPluginLoadObserver> pluginLoadObserver(DocumentLoa
der*); | |
| 188 | |
| 189 // The WebFrame that owns this object and manages its lifetime. Therefore, | 184 // The WebFrame that owns this object and manages its lifetime. Therefore, |
| 190 // the web frame object is guaranteed to exist. | 185 // the web frame object is guaranteed to exist. |
| 191 RawPtrWillBeMember<WebLocalFrameImpl> m_webFrame; | 186 RawPtrWillBeMember<WebLocalFrameImpl> m_webFrame; |
| 192 }; | 187 }; |
| 193 | 188 |
| 194 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr
ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); | 189 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr
ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); |
| 195 | 190 |
| 196 } // namespace blink | 191 } // namespace blink |
| 197 | 192 |
| 198 #endif | 193 #endif |
| OLD | NEW |