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

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

Issue 1550233002: Move mixed content settings histograms into browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo fix Created 4 years, 11 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_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // Invoked when the renderer process changes the page scale factor. 443 // Invoked when the renderer process changes the page scale factor.
444 virtual void OnPageScaleFactorChanged(float page_scale_factor) {} 444 virtual void OnPageScaleFactorChanged(float page_scale_factor) {}
445 445
446 // Invoked if an IPC message is coming from a specific RenderFrameHost. 446 // Invoked if an IPC message is coming from a specific RenderFrameHost.
447 virtual bool OnMessageReceived(const IPC::Message& message, 447 virtual bool OnMessageReceived(const IPC::Message& message,
448 RenderFrameHost* render_frame_host); 448 RenderFrameHost* render_frame_host);
449 449
450 // Notification that |contents| has gained focus. 450 // Notification that |contents| has gained focus.
451 virtual void OnWebContentsFocused() {} 451 virtual void OnWebContentsFocused() {}
452 452
453 virtual void OnTriedDisplayingInsecureContent(RenderFrameHost* rfh,
454 const GURL& origin,
455 const GURL& url) {}
456 virtual void OnTriedRunningInsecureContent(RenderFrameHost* rfh,
457 const GURL& origin,
458 const GURL& url) {}
459
453 // IPC::Listener implementation. 460 // IPC::Listener implementation.
454 bool OnMessageReceived(const IPC::Message& message) override; 461 bool OnMessageReceived(const IPC::Message& message) override;
455 462
456 // IPC::Sender implementation. 463 // IPC::Sender implementation.
457 bool Send(IPC::Message* message) override; 464 bool Send(IPC::Message* message) override;
458 int routing_id() const; 465 int routing_id() const;
459 466
460 WebContents* web_contents() const; 467 WebContents* web_contents() const;
461 468
462 protected: 469 protected:
(...skipping 17 matching lines...) Expand all
480 void ResetWebContents(); 487 void ResetWebContents();
481 488
482 WebContentsImpl* web_contents_; 489 WebContentsImpl* web_contents_;
483 490
484 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 491 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
485 }; 492 };
486 493
487 } // namespace content 494 } // namespace content
488 495
489 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 496 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698