| 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 27 matching lines...) Expand all Loading... |
| 38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class WebLocalFrameImpl; | 42 class WebLocalFrameImpl; |
| 43 class WebPluginContainerImpl; | 43 class WebPluginContainerImpl; |
| 44 class WebPluginLoadObserver; | 44 class WebPluginLoadObserver; |
| 45 | 45 |
| 46 class FrameLoaderClientImpl FINAL : public blink::FrameLoaderClient { | 46 class FrameLoaderClientImpl FINAL : public blink::FrameLoaderClient { |
| 47 public: | 47 public: |
| 48 FrameLoaderClientImpl(WebLocalFrameImpl* webFrame); | 48 explicit FrameLoaderClientImpl(WebLocalFrameImpl* webFrame); |
| 49 virtual ~FrameLoaderClientImpl(); | 49 virtual ~FrameLoaderClientImpl(); |
| 50 | 50 |
| 51 WebLocalFrameImpl* webFrame() const { return m_webFrame; } | 51 WebLocalFrameImpl* webFrame() const { return m_webFrame; } |
| 52 | 52 |
| 53 // blink::FrameLoaderClient ---------------------------------------------- | 53 // blink::FrameLoaderClient ---------------------------------------------- |
| 54 | 54 |
| 55 // 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, |
| 56 // 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 |
| 57 // parsing begins. | 57 // parsing begins. |
| 58 virtual void dispatchDidClearWindowObjectInMainWorld() OVERRIDE; | 58 virtual void dispatchDidClearWindowObjectInMainWorld() OVERRIDE; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // The WebFrame that owns this object and manages its lifetime. Therefore, | 173 // The WebFrame that owns this object and manages its lifetime. Therefore, |
| 174 // the web frame object is guaranteed to exist. | 174 // the web frame object is guaranteed to exist. |
| 175 WebLocalFrameImpl* m_webFrame; | 175 WebLocalFrameImpl* m_webFrame; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, blink::FrameLoaderClient, client, clien
t->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl()); | 178 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, blink::FrameLoaderClient, client, clien
t->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl()); |
| 179 | 179 |
| 180 } // namespace blink | 180 } // namespace blink |
| 181 | 181 |
| 182 #endif | 182 #endif |
| OLD | NEW |