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

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

Issue 2015433003: Implement MediaMetadata artwork in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed tests Created 4 years, 6 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 // RenderFrameHost. There may be multiple players within a RenderFrameHost 434 // RenderFrameHost. There may be multiple players within a RenderFrameHost
435 // and subsequently within a WebContents. MediaStartedPlaying() will always 435 // and subsequently within a WebContents. MediaStartedPlaying() will always
436 // be followed by MediaStoppedPlaying() after player teardown. Observers must 436 // be followed by MediaStoppedPlaying() after player teardown. Observers must
437 // release all stored copies of |id| when MediaStoppedPlaying() is received. 437 // release all stored copies of |id| when MediaStoppedPlaying() is received.
438 using MediaPlayerId = std::pair<RenderFrameHost*, int>; 438 using MediaPlayerId = std::pair<RenderFrameHost*, int>;
439 virtual void MediaStartedPlaying(const MediaPlayerId& id) {} 439 virtual void MediaStartedPlaying(const MediaPlayerId& id) {}
440 virtual void MediaStoppedPlaying(const MediaPlayerId& id) {} 440 virtual void MediaStoppedPlaying(const MediaPlayerId& id) {}
441 441
442 // Invoked when media session has changed its state. 442 // Invoked when media session has changed its state.
443 virtual void MediaSessionStateChanged(bool is_controllable, 443 virtual void MediaSessionStateChanged(bool is_controllable,
444 bool is_suspended, 444 bool is_suspended) {}
445 const MediaMetadata& metadata) {} 445
446 virtual void MediaMetadataChanged(const MediaMetadata& metadata) {}
446 447
447 // Invoked when the renderer process changes the page scale factor. 448 // Invoked when the renderer process changes the page scale factor.
448 virtual void OnPageScaleFactorChanged(float page_scale_factor) {} 449 virtual void OnPageScaleFactorChanged(float page_scale_factor) {}
449 450
450 // Invoked if an IPC message is coming from a specific RenderFrameHost. 451 // Invoked if an IPC message is coming from a specific RenderFrameHost.
451 virtual bool OnMessageReceived(const IPC::Message& message, 452 virtual bool OnMessageReceived(const IPC::Message& message,
452 RenderFrameHost* render_frame_host); 453 RenderFrameHost* render_frame_host);
453 454
454 // Notification that |contents| has gained focus. 455 // Notification that |contents| has gained focus.
455 virtual void OnWebContentsFocused() {} 456 virtual void OnWebContentsFocused() {}
(...skipping 28 matching lines...) Expand all
484 void ResetWebContents(); 485 void ResetWebContents();
485 486
486 WebContentsImpl* web_contents_; 487 WebContentsImpl* web_contents_;
487 488
488 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 489 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
489 }; 490 };
490 491
491 } // namespace content 492 } // namespace content
492 493
493 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 494 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698