Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: third_party/WebKit/Source/web/WebPluginLoadObserver.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
39 WebPluginLoadObserver::~WebPluginLoadObserver() 46 WebPluginLoadObserver::~WebPluginLoadObserver()
40 { 47 {
41 #if !ENABLE(OILPAN) 48 #if !ENABLE(OILPAN)
42 if (m_pluginContainer) 49 if (m_pluginContainer)
43 m_pluginContainer->willDestroyPluginLoadObserver(this); 50 m_pluginContainer->willDestroyPluginLoadObserver(this);
44 #endif 51 #endif
45 } 52 }
46 53
47 DEFINE_TRACE(WebPluginLoadObserver) 54 DEFINE_TRACE(WebPluginLoadObserver)
48 { 55 {
(...skipping 10 matching lines...) Expand all
59 66
60 void WebPluginLoadObserver::didFailLoading(const WebURLError& error) 67 void WebPluginLoadObserver::didFailLoading(const WebURLError& error)
61 { 68 {
62 if (!m_pluginContainer) 69 if (!m_pluginContainer)
63 return; 70 return;
64 if (WebPlugin* plugin = m_pluginContainer->plugin()) 71 if (WebPlugin* plugin = m_pluginContainer->plugin())
65 plugin->didFailLoadingFrameRequest(m_notifyURL, m_notifyData, error); 72 plugin->didFailLoadingFrameRequest(m_notifyURL, m_notifyData, error);
66 } 73 }
67 74
68 } // namespace blink 75 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698