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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Address jam@ comments; many minor code and comment updates. 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 int32_t render_view_route_id, 492 int32_t render_view_route_id,
493 int32_t main_frame_route_id, 493 int32_t main_frame_route_id,
494 int32_t main_frame_widget_route_id, 494 int32_t main_frame_widget_route_id,
495 const mojom::CreateNewWindowParams& params, 495 const mojom::CreateNewWindowParams& params,
496 SessionStorageNamespace* session_storage_namespace) override; 496 SessionStorageNamespace* session_storage_namespace) override;
497 void ShowCreatedWindow(int process_id, 497 void ShowCreatedWindow(int process_id,
498 int main_frame_widget_route_id, 498 int main_frame_widget_route_id,
499 WindowOpenDisposition disposition, 499 WindowOpenDisposition disposition,
500 const gfx::Rect& initial_rect, 500 const gfx::Rect& initial_rect,
501 bool user_gesture) override; 501 bool user_gesture) override;
502 void DidDisplayInsecureContent() override;
503 void DidRunInsecureContent(const GURL& security_origin,
504 const GURL& target_url) override;
505 void PassiveInsecureContentFound(const GURL& resource_url) override;
506 bool ShouldAllowRunningInsecureContent(
507 bool allowed_per_settings,
508 const url::Origin& origin,
509 const GURL& resource_url,
510 content::WebContents* web_contents) override;
502 511
503 // RenderViewHostDelegate ---------------------------------------------------- 512 // RenderViewHostDelegate ----------------------------------------------------
504 RenderViewHostDelegateView* GetDelegateView() override; 513 RenderViewHostDelegateView* GetDelegateView() override;
505 bool OnMessageReceived(RenderViewHostImpl* render_view_host, 514 bool OnMessageReceived(RenderViewHostImpl* render_view_host,
506 const IPC::Message& message) override; 515 const IPC::Message& message) override;
507 // RenderFrameHostDelegate has the same method, so list it there because this 516 // RenderFrameHostDelegate has the same method, so list it there because this
508 // interface is going away. 517 // interface is going away.
509 // WebContents* GetAsWebContents() override; 518 // WebContents* GetAsWebContents() override;
510 void RenderViewCreated(RenderViewHost* render_view_host) override; 519 void RenderViewCreated(RenderViewHost* render_view_host) override;
511 void RenderViewReady(RenderViewHost* render_view_host) override; 520 void RenderViewReady(RenderViewHost* render_view_host) override;
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 // Adds/removes a callback called on creation of each new WebContents. 1525 // Adds/removes a callback called on creation of each new WebContents.
1517 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1526 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1518 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1527 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1519 1528
1520 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1529 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1521 }; 1530 };
1522 1531
1523 } // namespace content 1532 } // namespace content
1524 1533
1525 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1534 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698