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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool WebHelperPluginImpl::initialize(const String& pluginType, WebLocalFrameImpl * frame) 69 bool WebHelperPluginImpl::initialize(const String& pluginType, WebLocalFrameImpl * frame)
70 { 70 {
71 ASSERT(!m_objectElement && !m_pluginContainer); 71 ASSERT(!m_objectElement && !m_pluginContainer);
72 if (!frame->frame()->loader().client()) 72 if (!frame->frame()->loader().client())
73 return false; 73 return false;
74 74
75 m_objectElement = HTMLObjectElement::create(*frame->frame()->document(), 0, false); 75 m_objectElement = HTMLObjectElement::create(*frame->frame()->document(), 0, false);
76 Vector<String> attributeNames; 76 Vector<String> attributeNames;
77 Vector<String> attributeValues; 77 Vector<String> attributeValues;
78 ASSERT(frame->frame()->document()->url().isValid()); 78 ASSERT(frame->frame()->document()->url().isValid());
79 m_pluginContainer = adoptRefWillBeNoop(toWebPluginContainerImpl(frame->frame ()->loader().client()->createPlugin( 79 m_pluginContainer = (toWebPluginContainerImpl(frame->frame()->loader().clien t()->createPlugin(
80 m_objectElement.get(), 80 m_objectElement.get(),
81 frame->frame()->document()->url(), 81 frame->frame()->document()->url(),
82 attributeNames, 82 attributeNames,
83 attributeValues, 83 attributeValues,
84 pluginType, 84 pluginType,
85 false, 85 false,
86 FrameLoaderClient::AllowDetachedPlugin).leakRef())); 86 FrameLoaderClient::AllowDetachedPlugin).leakRef()));
87 87
88 if (!m_pluginContainer) 88 if (!m_pluginContainer)
89 return false; 89 return false;
(...skipping 18 matching lines...) Expand all
108 } 108 }
109 109
110 WebPlugin* WebHelperPluginImpl::getPlugin() 110 WebPlugin* WebHelperPluginImpl::getPlugin()
111 { 111 {
112 ASSERT(m_pluginContainer); 112 ASSERT(m_pluginContainer);
113 ASSERT(m_pluginContainer->plugin()); 113 ASSERT(m_pluginContainer->plugin());
114 return m_pluginContainer->plugin(); 114 return m_pluginContainer->plugin();
115 } 115 }
116 116
117 } // namespace blink 117 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698