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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 511 // explain why the SecurityStyle was downgraded. Returns | 511 // explain why the SecurityStyle was downgraded. Returns |
| 512 // SECURITY_STYLE_UNKNOWN if not overriden. | 512 // SECURITY_STYLE_UNKNOWN if not overriden. |
| 513 virtual SecurityStyle GetSecurityStyle( | 513 virtual SecurityStyle GetSecurityStyle( |
| 514 WebContents* web_contents, | 514 WebContents* web_contents, |
| 515 SecurityStyleExplanations* security_style_explanations); | 515 SecurityStyleExplanations* security_style_explanations); |
| 516 | 516 |
| 517 // Displays platform-specific (OS) dialog with the certificate details. | 517 // Displays platform-specific (OS) dialog with the certificate details. |
| 518 virtual void ShowCertificateViewerInDevTools( | 518 virtual void ShowCertificateViewerInDevTools( |
| 519 WebContents* web_contents, | 519 WebContents* web_contents, |
| 520 int cert_id); | 520 int cert_id); |
| 521 virtual void GetCertificateTransparencySummary(bool is_valid_ev, | |
| 522 int num_unknown_scts, | |
| 523 int num_invalid_scts, | |
| 524 int num_valid_scts, | |
| 525 std::string* summary); | |
|
Ryan Sleevi
2016/01/19 19:39:00
DESIGN: Please consider using the appropriate C++
lgarron
2016/01/22 22:51:27
This *particular* function is actually the wrong s
| |
| 521 | 526 |
| 522 // Called when the active render widget is forwarding a RemoteChannel | 527 // Called when the active render widget is forwarding a RemoteChannel |
| 523 // compositor proto. This is used in Blimp mode. | 528 // compositor proto. This is used in Blimp mode. |
| 524 virtual void ForwardCompositorProto(const std::vector<uint8_t>& proto) {} | 529 virtual void ForwardCompositorProto(const std::vector<uint8_t>& proto) {} |
| 525 | 530 |
| 526 protected: | 531 protected: |
| 527 virtual ~WebContentsDelegate(); | 532 virtual ~WebContentsDelegate(); |
| 528 | 533 |
| 529 private: | 534 private: |
| 530 friend class WebContentsImpl; | 535 friend class WebContentsImpl; |
| 531 | 536 |
| 532 // Called when |this| becomes the WebContentsDelegate for |source|. | 537 // Called when |this| becomes the WebContentsDelegate for |source|. |
| 533 void Attach(WebContents* source); | 538 void Attach(WebContents* source); |
| 534 | 539 |
| 535 // Called when |this| is no longer the WebContentsDelegate for |source|. | 540 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 536 void Detach(WebContents* source); | 541 void Detach(WebContents* source); |
| 537 | 542 |
| 538 // The WebContents that this is currently a delegate for. | 543 // The WebContents that this is currently a delegate for. |
| 539 std::set<WebContents*> attached_contents_; | 544 std::set<WebContents*> attached_contents_; |
| 540 }; | 545 }; |
| 541 | 546 |
| 542 } // namespace content | 547 } // namespace content |
| 543 | 548 |
| 544 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 549 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |