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

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

Issue 2877333004: UMA for measuring how often 2 or more tabs script the same background contents.
Patch Set: No PostDelayedTask and checking if opener is a hosted app Created 3 years, 7 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 // Invoked when the renderer process changes the page scale factor. 416 // Invoked when the renderer process changes the page scale factor.
417 virtual void OnPageScaleFactorChanged(float page_scale_factor) {} 417 virtual void OnPageScaleFactorChanged(float page_scale_factor) {}
418 418
419 // Invoked if an IPC message is coming from a specific RenderFrameHost. 419 // Invoked if an IPC message is coming from a specific RenderFrameHost.
420 virtual bool OnMessageReceived(const IPC::Message& message, 420 virtual bool OnMessageReceived(const IPC::Message& message,
421 RenderFrameHost* render_frame_host); 421 RenderFrameHost* render_frame_host);
422 422
423 // Notification that |contents| has gained focus. 423 // Notification that |contents| has gained focus.
424 virtual void OnWebContentsFocused() {} 424 virtual void OnWebContentsFocused() {}
425 425
426 // Notification that opener has changed.
427 virtual void DidChangeOpener() {}
428
426 // Notifes that a CompositorFrame was received from the renderer. 429 // Notifes that a CompositorFrame was received from the renderer.
427 virtual void DidReceiveCompositorFrame() {} 430 virtual void DidReceiveCompositorFrame() {}
428 431
429 // IPC::Listener implementation. 432 // IPC::Listener implementation.
430 bool OnMessageReceived(const IPC::Message& message) override; 433 bool OnMessageReceived(const IPC::Message& message) override;
431 434
432 // IPC::Sender implementation. 435 // IPC::Sender implementation.
433 bool Send(IPC::Message* message) override; 436 bool Send(IPC::Message* message) override;
434 int routing_id() const; 437 int routing_id() const;
435 438
(...skipping 20 matching lines...) Expand all
456 void ResetWebContents(); 459 void ResetWebContents();
457 460
458 WebContentsImpl* web_contents_; 461 WebContentsImpl* web_contents_;
459 462
460 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 463 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
461 }; 464 };
462 465
463 } // namespace content 466 } // namespace content
464 467
465 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 468 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698