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

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

Issue 2745363004: PlzNavigate: send SourceLocation when mixed content is found (Closed)
Patch Set: Rebase 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;
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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 const base::string16& search_text, 911 const base::string16& search_text,
911 const blink::WebFindOptions& options); 912 const blink::WebFindOptions& options);
912 void OnClearActiveFindMatch(); 913 void OnClearActiveFindMatch();
913 void OnStopFinding(StopFindAction action); 914 void OnStopFinding(StopFindAction action);
914 void OnEnableViewSourceMode(); 915 void OnEnableViewSourceMode();
915 void OnSuppressFurtherDialogs(); 916 void OnSuppressFurtherDialogs();
916 void OnFileChooserResponse( 917 void OnFileChooserResponse(
917 const std::vector<content::FileChooserFileInfo>& files); 918 const std::vector<content::FileChooserFileInfo>& files);
918 void OnClearFocusedElement(); 919 void OnClearFocusedElement();
919 void OnBlinkFeatureUsageReport(const std::set<int>& features); 920 void OnBlinkFeatureUsageReport(const std::set<int>& features);
920 void OnMixedContentFound(const GURL& main_resource_url, 921 void OnMixedContentFound(const FrameMsg_MixedContentFound_Params& params);
921 const GURL& mixed_content_url,
922 RequestContextType request_context_type,
923 bool was_allowed,
924 bool had_redirect);
925 #if defined(OS_ANDROID) 922 #if defined(OS_ANDROID)
926 void OnActivateNearestFindResult(int request_id, float x, float y); 923 void OnActivateNearestFindResult(int request_id, float x, float y);
927 void OnGetNearestFindResult(int request_id, float x, float y); 924 void OnGetNearestFindResult(int request_id, float x, float y);
928 void OnFindMatchRects(int current_version); 925 void OnFindMatchRects(int current_version);
929 #endif 926 #endif
930 927
931 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) 928 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
932 #if defined(OS_MACOSX) 929 #if defined(OS_MACOSX)
933 void OnSelectPopupMenuItem(int selected_index); 930 void OnSelectPopupMenuItem(int selected_index);
934 #else 931 #else
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 // The navigation is sent to the browser in didStartProvisionalLoad(). 1402 // The navigation is sent to the browser in didStartProvisionalLoad().
1406 // Please see the BeginNavigation() for information. 1403 // Please see the BeginNavigation() for information.
1407 struct PendingNavigationInfo { 1404 struct PendingNavigationInfo {
1408 blink::WebNavigationType navigation_type; 1405 blink::WebNavigationType navigation_type;
1409 blink::WebNavigationPolicy policy; 1406 blink::WebNavigationPolicy policy;
1410 bool replaces_current_history_item; 1407 bool replaces_current_history_item;
1411 bool history_navigation_in_new_child_frame; 1408 bool history_navigation_in_new_child_frame;
1412 bool client_redirect; 1409 bool client_redirect;
1413 bool cache_disabled; 1410 bool cache_disabled;
1414 blink::WebFormElement form; 1411 blink::WebFormElement form;
1412 blink::WebSourceLocation source_location;
1415 1413
1416 PendingNavigationInfo(const NavigationPolicyInfo& info) 1414 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) {}
1425 }; 1415 };
1426 1416
1427 // PlzNavigate: Contains information about a pending navigation to be sent to 1417 // PlzNavigate: Contains information about a pending navigation to be sent to
1428 // the browser. This state is allocated in decidePolicyForNavigation() and 1418 // the browser. This state is allocated in decidePolicyForNavigation() and
1429 // is used and released in didStartProvisionalLoad(). 1419 // is used and released in didStartProvisionalLoad().
1430 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; 1420 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_;
1431 1421
1432 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1422 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1433 1423
1434 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1424 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1435 }; 1425 };
1436 1426
1437 } // namespace content 1427 } // namespace content
1438 1428
1439 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1429 #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