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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 521 |
522 // Called when the active render widget is forwarding a RemoteChannel | 522 // Called when the active render widget is forwarding a RemoteChannel |
523 // compositor proto. This is used in Blimp mode. | 523 // compositor proto. This is used in Blimp mode. |
524 virtual void ForwardCompositorProto(const std::vector<uint8_t>& proto) {} | 524 virtual void ForwardCompositorProto(const std::vector<uint8_t>& proto) {} |
525 | 525 |
| 526 // Requests the app banner. This method is called from the DevTools. |
| 527 virtual bool RequestAppBanner(content::WebContents* web_contents); |
| 528 |
526 protected: | 529 protected: |
527 virtual ~WebContentsDelegate(); | 530 virtual ~WebContentsDelegate(); |
528 | 531 |
529 private: | 532 private: |
530 friend class WebContentsImpl; | 533 friend class WebContentsImpl; |
531 | 534 |
532 // Called when |this| becomes the WebContentsDelegate for |source|. | 535 // Called when |this| becomes the WebContentsDelegate for |source|. |
533 void Attach(WebContents* source); | 536 void Attach(WebContents* source); |
534 | 537 |
535 // Called when |this| is no longer the WebContentsDelegate for |source|. | 538 // Called when |this| is no longer the WebContentsDelegate for |source|. |
536 void Detach(WebContents* source); | 539 void Detach(WebContents* source); |
537 | 540 |
538 // The WebContents that this is currently a delegate for. | 541 // The WebContents that this is currently a delegate for. |
539 std::set<WebContents*> attached_contents_; | 542 std::set<WebContents*> attached_contents_; |
540 }; | 543 }; |
541 | 544 |
542 } // namespace content | 545 } // namespace content |
543 | 546 |
544 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 547 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |