| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 class FrameLoaderClientImpl : public WebCore::FrameLoaderClient { | 46 class FrameLoaderClientImpl : public WebCore::FrameLoaderClient { |
| 47 public: | 47 public: |
| 48 FrameLoaderClientImpl(WebFrameImpl* webFrame); | 48 FrameLoaderClientImpl(WebFrameImpl* webFrame); |
| 49 ~FrameLoaderClientImpl(); | 49 ~FrameLoaderClientImpl(); |
| 50 | 50 |
| 51 WebFrameImpl* webFrame() const { return m_webFrame; } | 51 WebFrameImpl* webFrame() const { return m_webFrame; } |
| 52 | 52 |
| 53 // WebCore::FrameLoaderClient ---------------------------------------------- | 53 // WebCore::FrameLoaderClient ---------------------------------------------- |
| 54 | 54 |
| 55 virtual void frameLoaderDestroyed(); | |
| 56 | |
| 57 // Notifies the WebView delegate that the JS window object has been cleared, | 55 // Notifies the WebView delegate that the JS window object has been cleared, |
| 58 // giving it a chance to bind native objects to the window before script | 56 // giving it a chance to bind native objects to the window before script |
| 59 // parsing begins. | 57 // parsing begins. |
| 60 virtual void dispatchDidClearWindowObjectInWorld(WebCore::DOMWrapperWorld*); | 58 virtual void dispatchDidClearWindowObjectInWorld(WebCore::DOMWrapperWorld*); |
| 61 virtual void documentElementAvailable(); | 59 virtual void documentElementAvailable(); |
| 62 | 60 |
| 63 // Script in the page tried to allocate too much memory. | 61 // Script in the page tried to allocate too much memory. |
| 64 virtual void didExhaustMemoryAvailableForScript(); | 62 virtual void didExhaustMemoryAvailableForScript(); |
| 65 | 63 |
| 66 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr
oup, int worldId); | 64 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGr
oup, int worldId); |
| 67 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId); | 65 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId); |
| 68 | 66 |
| 69 // Returns true if we should allow the given V8 extension to be added to | 67 // Returns true if we should allow the given V8 extension to be added to |
| 70 // the script context at the currently loading page and given extension grou
p. | 68 // the script context at the currently loading page and given extension grou
p. |
| 71 virtual bool allowScriptExtension(const String& extensionName, int extension
Group, int worldId); | 69 virtual bool allowScriptExtension(const String& extensionName, int extension
Group, int worldId); |
| 72 | 70 |
| 73 virtual bool hasWebView() const; | 71 virtual bool hasWebView() const; |
| 74 virtual bool hasFrameView() const; | 72 virtual bool hasFrameView() const; |
| 73 virtual void willDetachParent(); |
| 75 virtual void detachedFromParent(); | 74 virtual void detachedFromParent(); |
| 76 virtual void dispatchWillRequestAfterPreconnect(WebCore::ResourceRequest&); | 75 virtual void dispatchWillRequestAfterPreconnect(WebCore::ResourceRequest&); |
| 77 virtual void dispatchWillSendRequest(WebCore::DocumentLoader*, unsigned long
identifier, WebCore::ResourceRequest&, const WebCore::ResourceResponse& redirec
tResponse); | 76 virtual void dispatchWillSendRequest(WebCore::DocumentLoader*, unsigned long
identifier, WebCore::ResourceRequest&, const WebCore::ResourceResponse& redirec
tResponse); |
| 78 virtual void dispatchDidReceiveResponse(WebCore::DocumentLoader*, unsigned l
ong identifier, const WebCore::ResourceResponse&); | 77 virtual void dispatchDidReceiveResponse(WebCore::DocumentLoader*, unsigned l
ong identifier, const WebCore::ResourceResponse&); |
| 79 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Web
Core::ResourceLoadPriority); | 78 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Web
Core::ResourceLoadPriority); |
| 80 virtual void dispatchDidFinishLoading(WebCore::DocumentLoader*, unsigned lon
g identifier); | 79 virtual void dispatchDidFinishLoading(WebCore::DocumentLoader*, unsigned lon
g identifier); |
| 81 virtual void dispatchDidLoadResourceFromMemoryCache(const WebCore::ResourceR
equest&, const WebCore::ResourceResponse&); | 80 virtual void dispatchDidLoadResourceFromMemoryCache(const WebCore::ResourceR
equest&, const WebCore::ResourceResponse&); |
| 82 virtual void dispatchDidHandleOnloadEvents(); | 81 virtual void dispatchDidHandleOnloadEvents(); |
| 83 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad(); | 82 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad(); |
| 84 virtual void dispatchDidNavigateWithinPage(WebCore::HistoryItem*, WebCore::H
istoryCommitType); | 83 virtual void dispatchDidNavigateWithinPage(WebCore::HistoryItem*, WebCore::H
istoryCommitType); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // The WebFrame that owns this object and manages its lifetime. Therefore, | 164 // The WebFrame that owns this object and manages its lifetime. Therefore, |
| 166 // the web frame object is guaranteed to exist. | 165 // the web frame object is guaranteed to exist. |
| 167 WebFrameImpl* m_webFrame; | 166 WebFrameImpl* m_webFrame; |
| 168 }; | 167 }; |
| 169 | 168 |
| 170 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, WebCore::FrameLoaderClient, client, cli
ent->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl()); | 169 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, WebCore::FrameLoaderClient, client, cli
ent->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl()); |
| 171 | 170 |
| 172 } // namespace blink | 171 } // namespace blink |
| 173 | 172 |
| 174 #endif | 173 #endif |
| OLD | NEW |