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

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

Issue 1835063002: DevTools: make app banner debug messages report with different severity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stray include Created 4 years, 9 months 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 WebContents* web_contents, 524 WebContents* web_contents,
525 int cert_id); 525 int cert_id);
526 526
527 // Called when the active render widget is forwarding a RemoteChannel 527 // Called when the active render widget is forwarding a RemoteChannel
528 // compositor proto. This is used in Blimp mode. 528 // compositor proto. This is used in Blimp mode.
529 virtual void ForwardCompositorProto( 529 virtual void ForwardCompositorProto(
530 RenderWidgetHost* render_widget_host, 530 RenderWidgetHost* render_widget_host,
531 const std::vector<uint8_t>& proto) {} 531 const std::vector<uint8_t>& proto) {}
532 532
533 // Requests the app banner. This method is called from the DevTools. 533 // Requests the app banner. This method is called from the DevTools.
534 virtual bool RequestAppBanner(content::WebContents* web_contents); 534 virtual void RequestAppBannerFromDevTools(content::WebContents* web_contents);
dominickn 2016/03/27 22:32:06 I think you also need to change the method in chro
pfeldman 2016/03/28 18:39:31 Done.
535 535
536 protected: 536 protected:
537 virtual ~WebContentsDelegate(); 537 virtual ~WebContentsDelegate();
538 538
539 private: 539 private:
540 friend class WebContentsImpl; 540 friend class WebContentsImpl;
541 541
542 // Called when |this| becomes the WebContentsDelegate for |source|. 542 // Called when |this| becomes the WebContentsDelegate for |source|.
543 void Attach(WebContents* source); 543 void Attach(WebContents* source);
544 544
545 // Called when |this| is no longer the WebContentsDelegate for |source|. 545 // Called when |this| is no longer the WebContentsDelegate for |source|.
546 void Detach(WebContents* source); 546 void Detach(WebContents* source);
547 547
548 // The WebContents that this is currently a delegate for. 548 // The WebContents that this is currently a delegate for.
549 std::set<WebContents*> attached_contents_; 549 std::set<WebContents*> attached_contents_;
550 }; 550 };
551 551
552 } // namespace content 552 } // namespace content
553 553
554 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 554 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698