| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "web/WebPluginLoadObserver.h" | 32 #include "web/WebPluginLoadObserver.h" |
| 33 | 33 |
| 34 #include "public/web/WebPlugin.h" | 34 #include "public/web/WebPlugin.h" |
| 35 #include "web/WebPluginContainerImpl.h" | 35 #include "web/WebPluginContainerImpl.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 WebPluginLoadObserver::WebPluginLoadObserver(WebPluginContainerImpl* pluginConta
iner, const WebURL& notifyURL, void* notifyData) | |
| 40 : m_pluginContainer(pluginContainer) | |
| 41 , m_notifyURL(notifyURL) | |
| 42 , m_notifyData(notifyData) | |
| 43 { | |
| 44 } | |
| 45 | |
| 46 WebPluginLoadObserver::~WebPluginLoadObserver() | 39 WebPluginLoadObserver::~WebPluginLoadObserver() |
| 47 { | 40 { |
| 48 #if !ENABLE(OILPAN) | 41 #if !ENABLE(OILPAN) |
| 49 if (m_pluginContainer) | 42 if (m_pluginContainer) |
| 50 m_pluginContainer->willDestroyPluginLoadObserver(this); | 43 m_pluginContainer->willDestroyPluginLoadObserver(this); |
| 51 #endif | 44 #endif |
| 52 } | 45 } |
| 53 | 46 |
| 54 DEFINE_TRACE(WebPluginLoadObserver) | 47 DEFINE_TRACE(WebPluginLoadObserver) |
| 55 { | 48 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 66 | 59 |
| 67 void WebPluginLoadObserver::didFailLoading(const WebURLError& error) | 60 void WebPluginLoadObserver::didFailLoading(const WebURLError& error) |
| 68 { | 61 { |
| 69 if (!m_pluginContainer) | 62 if (!m_pluginContainer) |
| 70 return; | 63 return; |
| 71 if (WebPlugin* plugin = m_pluginContainer->plugin()) | 64 if (WebPlugin* plugin = m_pluginContainer->plugin()) |
| 72 plugin->didFailLoadingFrameRequest(m_notifyURL, m_notifyData, error); | 65 plugin->didFailLoadingFrameRequest(m_notifyURL, m_notifyData, error); |
| 73 } | 66 } |
| 74 | 67 |
| 75 } // namespace blink | 68 } // namespace blink |
| OLD | NEW |