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

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

Issue 2583123002: Reload: FrameMsg_Navigate_Type cleanup to rename RELOAD_MAIN_RESOURCE (Closed)
Patch Set: [new year rebase] Created 3 years, 11 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 | « content/common/frame_message_enums.h ('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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 media::Context3D GetSharedMainThreadContext3D( 648 media::Context3D GetSharedMainThreadContext3D(
649 scoped_refptr<ui::ContextProviderCommandBuffer> provider) { 649 scoped_refptr<ui::ContextProviderCommandBuffer> provider) {
650 if (!provider) 650 if (!provider)
651 return media::Context3D(); 651 return media::Context3D();
652 return media::Context3D(provider->ContextGL(), provider->GrContext()); 652 return media::Context3D(provider->ContextGL(), provider->GrContext());
653 } 653 }
654 654
655 bool IsReload(FrameMsg_Navigate_Type::Value navigation_type) { 655 bool IsReload(FrameMsg_Navigate_Type::Value navigation_type) {
656 switch (navigation_type) { 656 switch (navigation_type) {
657 case FrameMsg_Navigate_Type::RELOAD: 657 case FrameMsg_Navigate_Type::RELOAD:
658 case FrameMsg_Navigate_Type::RELOAD_MAIN_RESOURCE:
659 case FrameMsg_Navigate_Type::RELOAD_BYPASSING_CACHE: 658 case FrameMsg_Navigate_Type::RELOAD_BYPASSING_CACHE:
660 case FrameMsg_Navigate_Type::RELOAD_ORIGINAL_REQUEST_URL: 659 case FrameMsg_Navigate_Type::RELOAD_ORIGINAL_REQUEST_URL:
661 return true; 660 return true;
662 case FrameMsg_Navigate_Type::RESTORE: 661 case FrameMsg_Navigate_Type::RESTORE:
663 case FrameMsg_Navigate_Type::RESTORE_WITH_POST: 662 case FrameMsg_Navigate_Type::RESTORE_WITH_POST:
664 case FrameMsg_Navigate_Type::NORMAL: 663 case FrameMsg_Navigate_Type::NORMAL:
665 return false; 664 return false;
666 } 665 }
667 NOTREACHED(); 666 NOTREACHED();
668 return false; 667 return false;
669 } 668 }
670 669
671 WebFrameLoadType ReloadFrameLoadTypeFor( 670 WebFrameLoadType ReloadFrameLoadTypeFor(
672 FrameMsg_Navigate_Type::Value navigation_type) { 671 FrameMsg_Navigate_Type::Value navigation_type) {
673 switch (navigation_type) { 672 switch (navigation_type) {
674 case FrameMsg_Navigate_Type::RELOAD: 673 case FrameMsg_Navigate_Type::RELOAD:
675 case FrameMsg_Navigate_Type::RELOAD_ORIGINAL_REQUEST_URL: 674 case FrameMsg_Navigate_Type::RELOAD_ORIGINAL_REQUEST_URL:
676 return WebFrameLoadType::Reload;
Charlie Reis 2017/01/11 18:21:54 This looks like a possible behavior change, since
Takashi Toyoshima 2017/01/12 11:11:00 Since FrameMsg_Navigate_Type::RELOAD isn't used an
Charlie Reis 2017/01/13 00:19:47 Ok. I'm alright with changing that behavior here
Takashi Toyoshima 2017/01/13 06:45:23 Done.
677 case FrameMsg_Navigate_Type::RELOAD_MAIN_RESOURCE:
678 return WebFrameLoadType::ReloadMainResource; 675 return WebFrameLoadType::ReloadMainResource;
679 case FrameMsg_Navigate_Type::RELOAD_BYPASSING_CACHE: 676 case FrameMsg_Navigate_Type::RELOAD_BYPASSING_CACHE:
680 return WebFrameLoadType::ReloadBypassingCache; 677 return WebFrameLoadType::ReloadBypassingCache;
681 case FrameMsg_Navigate_Type::RESTORE: 678 case FrameMsg_Navigate_Type::RESTORE:
682 case FrameMsg_Navigate_Type::RESTORE_WITH_POST: 679 case FrameMsg_Navigate_Type::RESTORE_WITH_POST:
683 case FrameMsg_Navigate_Type::NORMAL: 680 case FrameMsg_Navigate_Type::NORMAL:
684 NOTREACHED(); 681 NOTREACHED();
685 return WebFrameLoadType::Standard; 682 return WebFrameLoadType::Standard;
686 } 683 }
687 NOTREACHED(); 684 NOTREACHED();
(...skipping 6107 matching lines...) Expand 10 before | Expand all | Expand 10 after
6795 // event target. Potentially a Pepper plugin will receive the event. 6792 // event target. Potentially a Pepper plugin will receive the event.
6796 // In order to tell whether a plugin gets the last mouse event and which it 6793 // In order to tell whether a plugin gets the last mouse event and which it
6797 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6794 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6798 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6795 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6799 // |pepper_last_mouse_event_target_|. 6796 // |pepper_last_mouse_event_target_|.
6800 pepper_last_mouse_event_target_ = nullptr; 6797 pepper_last_mouse_event_target_ = nullptr;
6801 #endif 6798 #endif
6802 } 6799 }
6803 6800
6804 } // namespace content 6801 } // namespace content
OLDNEW
« no previous file with comments | « content/common/frame_message_enums.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698