Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 1442853005: Add IPC messages to transfer compositor protos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Swapped char to uint8_t, added checked_cast, updated description Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 forwarding a RemoteChannel
514 // compositor proto. This is used in Blimp mode.
515 virtual void ForwardCompositorProto(const std::vector<uint8_t>& 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698