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

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

Issue 2745363004: 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
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;
85 struct FrameMsg_PostMessage_Params; 86 struct FrameMsg_PostMessage_Params;
86 struct FrameMsg_SerializeAsMHTML_Params; 87 struct FrameMsg_SerializeAsMHTML_Params;
87 struct FrameMsg_TextTrackSettings_Params; 88 struct FrameMsg_TextTrackSettings_Params;
88 89
89 namespace blink { 90 namespace blink {
90 class WebContentDecryptionModule; 91 class WebContentDecryptionModule;
91 class WebPresentationClient; 92 class WebPresentationClient;
92 class WebPushClient; 93 class WebPushClient;
93 class WebSecurityOrigin; 94 class WebSecurityOrigin;
94 enum class WebCachePolicy; 95 enum class WebCachePolicy;
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 const base::string16& search_text, 907 const base::string16& search_text,
907 const blink::WebFindOptions& options); 908 const blink::WebFindOptions& options);
908 void OnClearActiveFindMatch(); 909 void OnClearActiveFindMatch();
909 void OnStopFinding(StopFindAction action); 910 void OnStopFinding(StopFindAction action);
910 void OnEnableViewSourceMode(); 911 void OnEnableViewSourceMode();
911 void OnSuppressFurtherDialogs(); 912 void OnSuppressFurtherDialogs();
912 void OnFileChooserResponse( 913 void OnFileChooserResponse(
913 const std::vector<content::FileChooserFileInfo>& files); 914 const std::vector<content::FileChooserFileInfo>& files);
914 void OnClearFocusedElement(); 915 void OnClearFocusedElement();
915 void OnBlinkFeatureUsageReport(const std::set<int>& features); 916 void OnBlinkFeatureUsageReport(const std::set<int>& features);
916 void OnMixedContentFound(const GURL& main_resource_url, 917 void OnMixedContentFound(const FrameMsg_MixedContentFound_Params& params);
917 const GURL& mixed_content_url,
918 RequestContextType request_context_type,
919 bool was_allowed,
920 bool had_redirect);
921 #if defined(OS_ANDROID) 918 #if defined(OS_ANDROID)
922 void OnActivateNearestFindResult(int request_id, float x, float y); 919 void OnActivateNearestFindResult(int request_id, float x, float y);
923 void OnGetNearestFindResult(int request_id, float x, float y); 920 void OnGetNearestFindResult(int request_id, float x, float y);
924 void OnFindMatchRects(int current_version); 921 void OnFindMatchRects(int current_version);
925 #endif 922 #endif
926 923
927 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) 924 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
928 #if defined(OS_MACOSX) 925 #if defined(OS_MACOSX)
929 void OnSelectPopupMenuItem(int selected_index); 926 void OnSelectPopupMenuItem(int selected_index);
930 #else 927 #else
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 // The navigation is sent to the browser in didStartProvisionalLoad(). 1398 // The navigation is sent to the browser in didStartProvisionalLoad().
1402 // Please see the BeginNavigation() for information. 1399 // Please see the BeginNavigation() for information.
1403 struct PendingNavigationInfo { 1400 struct PendingNavigationInfo {
1404 blink::WebNavigationType navigation_type; 1401 blink::WebNavigationType navigation_type;
1405 blink::WebNavigationPolicy policy; 1402 blink::WebNavigationPolicy policy;
1406 bool replaces_current_history_item; 1403 bool replaces_current_history_item;
1407 bool history_navigation_in_new_child_frame; 1404 bool history_navigation_in_new_child_frame;
1408 bool client_redirect; 1405 bool client_redirect;
1409 bool cache_disabled; 1406 bool cache_disabled;
1410 blink::WebFormElement form; 1407 blink::WebFormElement form;
1408 blink::WebSourceLocation location;
nasko 2017/03/15 18:29:08 nit: source_location, otherwise it reads a bit too
clamy 2017/03/16 15:07:03 Done.
1411 1409
1412 PendingNavigationInfo(const NavigationPolicyInfo& info) 1410 PendingNavigationInfo(const NavigationPolicyInfo& info);
1413 : navigation_type(info.navigationType),
1414 policy(info.defaultPolicy),
1415 replaces_current_history_item(info.replacesCurrentHistoryItem),
1416 history_navigation_in_new_child_frame(
1417 info.isHistoryNavigationInNewChildFrame),
1418 client_redirect(info.isClientRedirect),
1419 cache_disabled(info.isCacheDisabled),
1420 form(info.form) {}
1421 }; 1411 };
1422 1412
1423 // PlzNavigate: Contains information about a pending navigation to be sent to 1413 // PlzNavigate: Contains information about a pending navigation to be sent to
1424 // the browser. This state is allocated in decidePolicyForNavigation() and 1414 // the browser. This state is allocated in decidePolicyForNavigation() and
1425 // is used and released in didStartProvisionalLoad(). 1415 // is used and released in didStartProvisionalLoad().
1426 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; 1416 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_;
1427 1417
1428 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1418 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1429 1419
1430 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1420 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1431 }; 1421 };
1432 1422
1433 } // namespace content 1423 } // namespace content
1434 1424
1435 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1425 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698