Chromium Code Reviews| 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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 548 | 552 |
| 549 // Called when the active render widget is forwarding a RemoteChannel | 553 // Called when the active render widget is forwarding a RemoteChannel |
| 550 // compositor proto. This is used in Blimp mode. | 554 // compositor proto. This is used in Blimp mode. |
| 551 virtual void ForwardCompositorProto( | 555 virtual void ForwardCompositorProto( |
| 552 RenderWidgetHost* render_widget_host, | 556 RenderWidgetHost* render_widget_host, |
| 553 const std::vector<uint8_t>& proto) {} | 557 const std::vector<uint8_t>& proto) {} |
| 554 | 558 |
| 555 // Requests the app banner. This method is called from the DevTools. | 559 // Requests the app banner. This method is called from the DevTools. |
| 556 virtual void RequestAppBannerFromDevTools(content::WebContents* web_contents); | 560 virtual void RequestAppBannerFromDevTools(content::WebContents* web_contents); |
| 557 | 561 |
| 562 // Reports that passive mixed content was found at the specified url. | |
| 563 virtual void PassiveInsecureContentFound(const GURL& resource_url) {} | |
| 564 | |
| 565 // Checks if running of active mixed-content is allowed for the specified | |
| 566 // WebContents/tab. | |
| 567 virtual bool ShouldAllowRunningInsecureContent(bool allowed_per_settings, | |
|
nasko
2017/01/12 18:32:38
nit: Shouldn't this be "allower_per_prefs"? When I
carlosk
2017/01/21 02:54:59
I'm just following the pattern used in MixedConten
nasko
2017/01/23 22:32:37
My comment meant to say that the source of the inp
carlosk
2017/02/08 02:59:02
Understood this time and agreed. Changed all cases
| |
| 568 const url::Origin& origin, | |
| 569 const GURL& resource_url, | |
| 570 WebContents* web_contents); | |
|
nasko
2017/01/12 18:32:38
Let's keep WebContents as the first parameter to b
carlosk
2017/01/21 02:54:59
Done.
| |
| 571 | |
| 558 protected: | 572 protected: |
| 559 virtual ~WebContentsDelegate(); | 573 virtual ~WebContentsDelegate(); |
| 560 | 574 |
| 561 private: | 575 private: |
| 562 friend class WebContentsImpl; | 576 friend class WebContentsImpl; |
| 563 | 577 |
| 564 // Called when |this| becomes the WebContentsDelegate for |source|. | 578 // Called when |this| becomes the WebContentsDelegate for |source|. |
| 565 void Attach(WebContents* source); | 579 void Attach(WebContents* source); |
| 566 | 580 |
| 567 // Called when |this| is no longer the WebContentsDelegate for |source|. | 581 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 568 void Detach(WebContents* source); | 582 void Detach(WebContents* source); |
| 569 | 583 |
| 570 // The WebContents that this is currently a delegate for. | 584 // The WebContents that this is currently a delegate for. |
| 571 std::set<WebContents*> attached_contents_; | 585 std::set<WebContents*> attached_contents_; |
| 572 }; | 586 }; |
| 573 | 587 |
| 574 } // namespace content | 588 } // namespace content |
| 575 | 589 |
| 576 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 590 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |