| 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_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 namespace gfx { | 59 namespace gfx { |
| 60 class Point; | 60 class Point; |
| 61 class Rect; | 61 class Rect; |
| 62 class Size; | 62 class Size; |
| 63 } | 63 } |
| 64 | 64 |
| 65 namespace net { | 65 namespace net { |
| 66 class X509Certificate; | 66 class X509Certificate; |
| 67 } | 67 } |
| 68 | 68 |
| 69 namespace url { |
| 70 class Origin; |
| 71 } |
| 72 |
| 69 namespace blink { | 73 namespace blink { |
| 70 class WebGestureEvent; | 74 class WebGestureEvent; |
| 71 } | 75 } |
| 72 | 76 |
| 73 namespace content { | 77 namespace content { |
| 74 | 78 |
| 75 struct OpenURLParams; | 79 struct OpenURLParams; |
| 76 struct WebContentsUnresponsiveState; | 80 struct WebContentsUnresponsiveState; |
| 77 | 81 |
| 78 // Objects implement this interface to get notified about changes in the | 82 // Objects implement this interface to get notified about changes in the |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 SecurityStyleExplanations* security_style_explanations); | 546 SecurityStyleExplanations* security_style_explanations); |
| 543 | 547 |
| 544 // Displays platform-specific (OS) dialog with the certificate details. | 548 // Displays platform-specific (OS) dialog with the certificate details. |
| 545 virtual void ShowCertificateViewerInDevTools( | 549 virtual void ShowCertificateViewerInDevTools( |
| 546 WebContents* web_contents, | 550 WebContents* web_contents, |
| 547 scoped_refptr<net::X509Certificate> certificate); | 551 scoped_refptr<net::X509Certificate> certificate); |
| 548 | 552 |
| 549 // Requests the app banner. This method is called from the DevTools. | 553 // Requests the app banner. This method is called from the DevTools. |
| 550 virtual void RequestAppBannerFromDevTools(content::WebContents* web_contents); | 554 virtual void RequestAppBannerFromDevTools(content::WebContents* web_contents); |
| 551 | 555 |
| 556 // Reports that passive mixed content was found at the specified url. |
| 557 virtual void PassiveInsecureContentFound(const GURL& resource_url) {} |
| 558 |
| 559 // Checks if running of active mixed content is allowed for the specified |
| 560 // WebContents/tab. |
| 561 virtual bool ShouldAllowRunningInsecureContent(WebContents* web_contents, |
| 562 bool allowed_per_settings, |
| 563 const url::Origin& origin, |
| 564 const GURL& resource_url); |
| 565 |
| 552 protected: | 566 protected: |
| 553 virtual ~WebContentsDelegate(); | 567 virtual ~WebContentsDelegate(); |
| 554 | 568 |
| 555 private: | 569 private: |
| 556 friend class WebContentsImpl; | 570 friend class WebContentsImpl; |
| 557 | 571 |
| 558 // Called when |this| becomes the WebContentsDelegate for |source|. | 572 // Called when |this| becomes the WebContentsDelegate for |source|. |
| 559 void Attach(WebContents* source); | 573 void Attach(WebContents* source); |
| 560 | 574 |
| 561 // Called when |this| is no longer the WebContentsDelegate for |source|. | 575 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 562 void Detach(WebContents* source); | 576 void Detach(WebContents* source); |
| 563 | 577 |
| 564 // The WebContents that this is currently a delegate for. | 578 // The WebContents that this is currently a delegate for. |
| 565 std::set<WebContents*> attached_contents_; | 579 std::set<WebContents*> attached_contents_; |
| 566 }; | 580 }; |
| 567 | 581 |
| 568 } // namespace content | 582 } // namespace content |
| 569 | 583 |
| 570 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 584 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |