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

Side by Side Diff: Source/modules/plugins/DOMPluginArray.cpp

Issue 1156473002: Refactor FrameLoader loading interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 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
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 2 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
3 * Copyright (C) 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public 6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 return nullptr; 70 return nullptr;
71 } 71 }
72 72
73 void DOMPluginArray::refresh(bool reload) 73 void DOMPluginArray::refresh(bool reload)
74 { 74 {
75 if (!m_frame) 75 if (!m_frame)
76 return; 76 return;
77 Page::refreshPlugins(); 77 Page::refreshPlugins();
78 if (reload) 78 if (reload)
79 m_frame->reload(NormalReload, ClientRedirect); 79 m_frame->reload(FrameLoadTypeReload, ClientRedirect);
80 } 80 }
81 81
82 PluginData* DOMPluginArray::pluginData() const 82 PluginData* DOMPluginArray::pluginData() const
83 { 83 {
84 if (!m_frame) 84 if (!m_frame)
85 return nullptr; 85 return nullptr;
86 Page* page = m_frame->page(); 86 Page* page = m_frame->page();
87 if (!page) 87 if (!page)
88 return nullptr; 88 return nullptr;
89 return page->pluginData(); 89 return page->pluginData();
90 } 90 }
91 91
92 } // namespace blink 92 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698