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

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

Issue 2772753002: Change FrameLoadTypeReload to take FrameLoadTypeReloadMainResource's behavior (Closed)
Patch Set: rebase error fix (replace newly added ReloadMainResource) Created 3 years, 9 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) 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return DOMPlugin::create(data, frame(), i); 62 return DOMPlugin::create(data, frame(), i);
63 } 63 }
64 return nullptr; 64 return nullptr;
65 } 65 }
66 66
67 void DOMPluginArray::refresh(bool reload) { 67 void DOMPluginArray::refresh(bool reload) {
68 if (!frame()) 68 if (!frame())
69 return; 69 return;
70 Page::refreshPlugins(); 70 Page::refreshPlugins();
71 if (reload) { 71 if (reload) {
72 frame()->reload(FrameLoadTypeReloadMainResource, 72 frame()->reload(FrameLoadTypeReload, ClientRedirectPolicy::ClientRedirect);
73 ClientRedirectPolicy::ClientRedirect);
74 } 73 }
75 } 74 }
76 75
77 PluginData* DOMPluginArray::pluginData() const { 76 PluginData* DOMPluginArray::pluginData() const {
78 if (!frame()) 77 if (!frame())
79 return nullptr; 78 return nullptr;
80 return frame()->pluginData(); 79 return frame()->pluginData();
81 } 80 }
82 81
83 } // namespace blink 82 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | third_party/WebKit/Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698