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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2553053002: Use ReloadMainResource for per-frame reload (Closed)
Patch Set: rf Created 4 years 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 | « chrome/renderer/content_settings_observer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after
2254 WebDOMMessageEvent msg_event(serialized_script_value, 2254 WebDOMMessageEvent msg_event(serialized_script_value,
2255 params.source_origin, 2255 params.source_origin,
2256 source_frame, 2256 source_frame,
2257 frame_->document(), 2257 frame_->document(),
2258 channels); 2258 channels);
2259 frame_->dispatchMessageEventWithOriginCheck(target_origin, msg_event); 2259 frame_->dispatchMessageEventWithOriginCheck(target_origin, msg_event);
2260 } 2260 }
2261 2261
2262 void RenderFrameImpl::OnReload(bool bypass_cache) { 2262 void RenderFrameImpl::OnReload(bool bypass_cache) {
2263 frame_->reload(bypass_cache ? WebFrameLoadType::ReloadBypassingCache 2263 frame_->reload(bypass_cache ? WebFrameLoadType::ReloadBypassingCache
2264 : WebFrameLoadType::Reload); 2264 : WebFrameLoadType::ReloadMainResource);
2265 } 2265 }
2266 2266
2267 void RenderFrameImpl::OnReloadLoFiImages() { 2267 void RenderFrameImpl::OnReloadLoFiImages() {
2268 is_using_lofi_ = false; 2268 is_using_lofi_ = false;
2269 GetWebFrame()->reloadLoFiImages(); 2269 GetWebFrame()->reloadLoFiImages();
2270 } 2270 }
2271 2271
2272 void RenderFrameImpl::OnTextSurroundingSelectionRequest(uint32_t max_length) { 2272 void RenderFrameImpl::OnTextSurroundingSelectionRequest(uint32_t max_length) {
2273 blink::WebSurroundingText surroundingText; 2273 blink::WebSurroundingText surroundingText;
2274 surroundingText.initializeFromCurrentSelection(frame_, max_length); 2274 surroundingText.initializeFromCurrentSelection(frame_, max_length);
(...skipping 4411 matching lines...) Expand 10 before | Expand all | Expand 10 after
6686 // event target. Potentially a Pepper plugin will receive the event. 6686 // event target. Potentially a Pepper plugin will receive the event.
6687 // In order to tell whether a plugin gets the last mouse event and which it 6687 // In order to tell whether a plugin gets the last mouse event and which it
6688 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6688 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6689 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6689 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6690 // |pepper_last_mouse_event_target_|. 6690 // |pepper_last_mouse_event_target_|.
6691 pepper_last_mouse_event_target_ = nullptr; 6691 pepper_last_mouse_event_target_ = nullptr;
6692 #endif 6692 #endif
6693 } 6693 }
6694 6694
6695 } // namespace content 6695 } // namespace content
OLDNEW
« no previous file with comments | « chrome/renderer/content_settings_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698