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

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

Issue 1037593003: Propagate media play/pause to WebContentsObserver for Chromecast metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/process/kill.h" 8 #include "base/process/kill.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // Invoked when a user cancels a before unload dialog. 336 // Invoked when a user cancels a before unload dialog.
337 virtual void BeforeUnloadDialogCancelled() {} 337 virtual void BeforeUnloadDialogCancelled() {}
338 338
339 // Invoked when an accessibility event is received from the renderer process. 339 // Invoked when an accessibility event is received from the renderer process.
340 virtual void AccessibilityEventReceived( 340 virtual void AccessibilityEventReceived(
341 const std::vector<AXEventNotificationDetails>& details) {} 341 const std::vector<AXEventNotificationDetails>& details) {}
342 342
343 // Invoked when theme color is changed to |theme_color|. 343 // Invoked when theme color is changed to |theme_color|.
344 virtual void DidChangeThemeColor(SkColor theme_color) {} 344 virtual void DidChangeThemeColor(SkColor theme_color) {}
345 345
346 // Invoked when media is playing.
347 virtual void MediaPlayingNotification() {}
nasko 2015/03/25 22:31:58 The name of this method doesn't quite fit the nami
prashantv 2015/03/25 22:44:35 Done.
348
349 // Invoked when media is paused.
350 virtual void MediaPausedNotification() {}
351
346 // Invoked if an IPC message is coming from a specific RenderFrameHost. 352 // Invoked if an IPC message is coming from a specific RenderFrameHost.
347 virtual bool OnMessageReceived(const IPC::Message& message, 353 virtual bool OnMessageReceived(const IPC::Message& message,
348 RenderFrameHost* render_frame_host); 354 RenderFrameHost* render_frame_host);
349 355
350 // IPC::Listener implementation. 356 // IPC::Listener implementation.
351 bool OnMessageReceived(const IPC::Message& message) override; 357 bool OnMessageReceived(const IPC::Message& message) override;
352 358
353 // IPC::Sender implementation. 359 // IPC::Sender implementation.
354 bool Send(IPC::Message* message) override; 360 bool Send(IPC::Message* message) override;
355 int routing_id() const; 361 int routing_id() const;
(...skipping 21 matching lines...) Expand all
377 void ResetWebContents(); 383 void ResetWebContents();
378 384
379 WebContentsImpl* web_contents_; 385 WebContentsImpl* web_contents_;
380 386
381 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 387 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
382 }; 388 };
383 389
384 } // namespace content 390 } // namespace content
385 391
386 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 392 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698