| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 // SECURITY_STYLE_UNKNOWN if not overriden. | 503 // SECURITY_STYLE_UNKNOWN if not overriden. |
| 504 virtual SecurityStyle GetSecurityStyle( | 504 virtual SecurityStyle GetSecurityStyle( |
| 505 WebContents* web_contents, | 505 WebContents* web_contents, |
| 506 SecurityStyleExplanations* security_style_explanations); | 506 SecurityStyleExplanations* security_style_explanations); |
| 507 | 507 |
| 508 // Displays platform-specific (OS) dialog with the certificate details. | 508 // Displays platform-specific (OS) dialog with the certificate details. |
| 509 virtual void ShowCertificateViewerInDevTools( | 509 virtual void ShowCertificateViewerInDevTools( |
| 510 WebContents* web_contents, | 510 WebContents* web_contents, |
| 511 int cert_id); | 511 int cert_id); |
| 512 | 512 |
| 513 // Called when the active render widget is sending a compositor proto for this |
| 514 // WebContents. |
| 515 virtual void HandleCompositorProto(const std::vector<char>& proto) {} |
| 516 |
| 513 protected: | 517 protected: |
| 514 virtual ~WebContentsDelegate(); | 518 virtual ~WebContentsDelegate(); |
| 515 | 519 |
| 516 private: | 520 private: |
| 517 friend class WebContentsImpl; | 521 friend class WebContentsImpl; |
| 518 | 522 |
| 519 // Called when |this| becomes the WebContentsDelegate for |source|. | 523 // Called when |this| becomes the WebContentsDelegate for |source|. |
| 520 void Attach(WebContents* source); | 524 void Attach(WebContents* source); |
| 521 | 525 |
| 522 // Called when |this| is no longer the WebContentsDelegate for |source|. | 526 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 523 void Detach(WebContents* source); | 527 void Detach(WebContents* source); |
| 524 | 528 |
| 525 // The WebContents that this is currently a delegate for. | 529 // The WebContents that this is currently a delegate for. |
| 526 std::set<WebContents*> attached_contents_; | 530 std::set<WebContents*> attached_contents_; |
| 527 }; | 531 }; |
| 528 | 532 |
| 529 } // namespace content | 533 } // namespace content |
| 530 | 534 |
| 531 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 535 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |