| OLD | NEW |
| 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 int32_t render_view_route_id, | 496 int32_t render_view_route_id, |
| 497 int32_t main_frame_route_id, | 497 int32_t main_frame_route_id, |
| 498 int32_t main_frame_widget_route_id, | 498 int32_t main_frame_widget_route_id, |
| 499 const mojom::CreateNewWindowParams& params, | 499 const mojom::CreateNewWindowParams& params, |
| 500 SessionStorageNamespace* session_storage_namespace) override; | 500 SessionStorageNamespace* session_storage_namespace) override; |
| 501 void ShowCreatedWindow(int process_id, | 501 void ShowCreatedWindow(int process_id, |
| 502 int main_frame_widget_route_id, | 502 int main_frame_widget_route_id, |
| 503 WindowOpenDisposition disposition, | 503 WindowOpenDisposition disposition, |
| 504 const gfx::Rect& initial_rect, | 504 const gfx::Rect& initial_rect, |
| 505 bool user_gesture) override; | 505 bool user_gesture) override; |
| 506 void DidDisplayInsecureContent() override; |
| 507 void DidRunInsecureContent(const GURL& security_origin, |
| 508 const GURL& target_url) override; |
| 509 void PassiveInsecureContentFound(const GURL& resource_url) override; |
| 510 bool ShouldAllowRunningInsecureContent(content::WebContents* web_contents, |
| 511 bool allowed_per_prefs, |
| 512 const url::Origin& origin, |
| 513 const GURL& resource_url) override; |
| 506 | 514 |
| 507 // RenderViewHostDelegate ---------------------------------------------------- | 515 // RenderViewHostDelegate ---------------------------------------------------- |
| 508 RenderViewHostDelegateView* GetDelegateView() override; | 516 RenderViewHostDelegateView* GetDelegateView() override; |
| 509 bool OnMessageReceived(RenderViewHostImpl* render_view_host, | 517 bool OnMessageReceived(RenderViewHostImpl* render_view_host, |
| 510 const IPC::Message& message) override; | 518 const IPC::Message& message) override; |
| 511 // RenderFrameHostDelegate has the same method, so list it there because this | 519 // RenderFrameHostDelegate has the same method, so list it there because this |
| 512 // interface is going away. | 520 // interface is going away. |
| 513 // WebContents* GetAsWebContents() override; | 521 // WebContents* GetAsWebContents() override; |
| 514 void RenderViewCreated(RenderViewHost* render_view_host) override; | 522 void RenderViewCreated(RenderViewHost* render_view_host) override; |
| 515 void RenderViewReady(RenderViewHost* render_view_host) override; | 523 void RenderViewReady(RenderViewHost* render_view_host) override; |
| (...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1515 // Adds/removes a callback called on creation of each new WebContents. | 1523 // Adds/removes a callback called on creation of each new WebContents. |
| 1516 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1524 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1517 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1525 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1518 | 1526 |
| 1519 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1527 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1520 }; | 1528 }; |
| 1521 | 1529 |
| 1522 } // namespace content | 1530 } // namespace content |
| 1523 | 1531 |
| 1524 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1532 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |