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

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

Issue 2765643002: Revert of PlzNavigate: send SourceLocation when mixed content is found (Closed)
Patch Set: 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | 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 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 #include "url/origin.h" 75 #include "url/origin.h"
76 76
77 #if BUILDFLAG(ENABLE_PLUGINS) 77 #if BUILDFLAG(ENABLE_PLUGINS)
78 #include "content/renderer/pepper/plugin_power_saver_helper.h" 78 #include "content/renderer/pepper/plugin_power_saver_helper.h"
79 #endif 79 #endif
80 80
81 #if defined(OS_ANDROID) 81 #if defined(OS_ANDROID)
82 #include "content/renderer/media/android/renderer_media_player_manager.h" 82 #include "content/renderer/media/android/renderer_media_player_manager.h"
83 #endif 83 #endif
84 84
85 struct FrameMsg_MixedContentFound_Params;
86 struct FrameMsg_PostMessage_Params; 85 struct FrameMsg_PostMessage_Params;
87 struct FrameMsg_SerializeAsMHTML_Params; 86 struct FrameMsg_SerializeAsMHTML_Params;
88 struct FrameMsg_TextTrackSettings_Params; 87 struct FrameMsg_TextTrackSettings_Params;
89 88
90 namespace blink { 89 namespace blink {
91 class WebContentDecryptionModule; 90 class WebContentDecryptionModule;
92 class WebPresentationClient; 91 class WebPresentationClient;
93 class WebPushClient; 92 class WebPushClient;
94 class WebSecurityOrigin; 93 class WebSecurityOrigin;
95 enum class WebCachePolicy; 94 enum class WebCachePolicy;
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 const base::string16& search_text, 910 const base::string16& search_text,
912 const blink::WebFindOptions& options); 911 const blink::WebFindOptions& options);
913 void OnClearActiveFindMatch(); 912 void OnClearActiveFindMatch();
914 void OnStopFinding(StopFindAction action); 913 void OnStopFinding(StopFindAction action);
915 void OnEnableViewSourceMode(); 914 void OnEnableViewSourceMode();
916 void OnSuppressFurtherDialogs(); 915 void OnSuppressFurtherDialogs();
917 void OnFileChooserResponse( 916 void OnFileChooserResponse(
918 const std::vector<content::FileChooserFileInfo>& files); 917 const std::vector<content::FileChooserFileInfo>& files);
919 void OnClearFocusedElement(); 918 void OnClearFocusedElement();
920 void OnBlinkFeatureUsageReport(const std::set<int>& features); 919 void OnBlinkFeatureUsageReport(const std::set<int>& features);
921 void OnMixedContentFound(const FrameMsg_MixedContentFound_Params& params); 920 void OnMixedContentFound(const GURL& main_resource_url,
921 const GURL& mixed_content_url,
922 RequestContextType request_context_type,
923 bool was_allowed,
924 bool had_redirect);
922 #if defined(OS_ANDROID) 925 #if defined(OS_ANDROID)
923 void OnActivateNearestFindResult(int request_id, float x, float y); 926 void OnActivateNearestFindResult(int request_id, float x, float y);
924 void OnGetNearestFindResult(int request_id, float x, float y); 927 void OnGetNearestFindResult(int request_id, float x, float y);
925 void OnFindMatchRects(int current_version); 928 void OnFindMatchRects(int current_version);
926 #endif 929 #endif
927 930
928 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) 931 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
929 #if defined(OS_MACOSX) 932 #if defined(OS_MACOSX)
930 void OnSelectPopupMenuItem(int selected_index); 933 void OnSelectPopupMenuItem(int selected_index);
931 #else 934 #else
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 // The navigation is sent to the browser in didStartProvisionalLoad(). 1405 // The navigation is sent to the browser in didStartProvisionalLoad().
1403 // Please see the BeginNavigation() for information. 1406 // Please see the BeginNavigation() for information.
1404 struct PendingNavigationInfo { 1407 struct PendingNavigationInfo {
1405 blink::WebNavigationType navigation_type; 1408 blink::WebNavigationType navigation_type;
1406 blink::WebNavigationPolicy policy; 1409 blink::WebNavigationPolicy policy;
1407 bool replaces_current_history_item; 1410 bool replaces_current_history_item;
1408 bool history_navigation_in_new_child_frame; 1411 bool history_navigation_in_new_child_frame;
1409 bool client_redirect; 1412 bool client_redirect;
1410 bool cache_disabled; 1413 bool cache_disabled;
1411 blink::WebFormElement form; 1414 blink::WebFormElement form;
1412 blink::WebSourceLocation source_location;
1413 1415
1414 PendingNavigationInfo(const NavigationPolicyInfo& info); 1416 PendingNavigationInfo(const NavigationPolicyInfo& info)
1417 : navigation_type(info.navigationType),
1418 policy(info.defaultPolicy),
1419 replaces_current_history_item(info.replacesCurrentHistoryItem),
1420 history_navigation_in_new_child_frame(
1421 info.isHistoryNavigationInNewChildFrame),
1422 client_redirect(info.isClientRedirect),
1423 cache_disabled(info.isCacheDisabled),
1424 form(info.form) {}
1415 }; 1425 };
1416 1426
1417 // PlzNavigate: Contains information about a pending navigation to be sent to 1427 // PlzNavigate: Contains information about a pending navigation to be sent to
1418 // the browser. This state is allocated in decidePolicyForNavigation() and 1428 // the browser. This state is allocated in decidePolicyForNavigation() and
1419 // is used and released in didStartProvisionalLoad(). 1429 // is used and released in didStartProvisionalLoad().
1420 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; 1430 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_;
1421 1431
1422 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1432 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1423 1433
1424 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1434 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1425 }; 1435 };
1426 1436
1427 } // namespace content 1437 } // namespace content
1428 1438
1429 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1439 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698