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

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

Issue 1554233004: Plumb audio muting state to guest web-contents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. 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
« 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // finished, web_contents() returns nullptr. 390 // finished, web_contents() returns nullptr.
391 virtual void WebContentsDestroyed() {} 391 virtual void WebContentsDestroyed() {}
392 392
393 // Called when the user agent override for a WebContents has been changed. 393 // Called when the user agent override for a WebContents has been changed.
394 virtual void UserAgentOverrideSet(const std::string& user_agent) {} 394 virtual void UserAgentOverrideSet(const std::string& user_agent) {}
395 395
396 // Invoked when new FaviconURL candidates are received from the renderer 396 // Invoked when new FaviconURL candidates are received from the renderer
397 // process. 397 // process.
398 virtual void DidUpdateFaviconURL(const std::vector<FaviconURL>& candidates) {} 398 virtual void DidUpdateFaviconURL(const std::vector<FaviconURL>& candidates) {}
399 399
400 // Invoked when the WebContents is muted/unmuted.
401 virtual void DidUpdateAudioMutingState(bool muted) {}
402
400 // Invoked when a pepper plugin creates and shows or destroys a fullscreen 403 // Invoked when a pepper plugin creates and shows or destroys a fullscreen
401 // RenderWidget. 404 // RenderWidget.
402 virtual void DidShowFullscreenWidget(int routing_id) {} 405 virtual void DidShowFullscreenWidget(int routing_id) {}
403 virtual void DidDestroyFullscreenWidget(int routing_id) {} 406 virtual void DidDestroyFullscreenWidget(int routing_id) {}
404 407
405 // Invoked when the renderer process has toggled the tab into/out of 408 // Invoked when the renderer process has toggled the tab into/out of
406 // fullscreen mode. 409 // fullscreen mode.
407 virtual void DidToggleFullscreenModeForTab(bool entered_fullscreen) {} 410 virtual void DidToggleFullscreenModeForTab(bool entered_fullscreen) {}
408 411
409 // Invoked when an interstitial page is attached or detached. 412 // Invoked when an interstitial page is attached or detached.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 void ResetWebContents(); 483 void ResetWebContents();
481 484
482 WebContentsImpl* web_contents_; 485 WebContentsImpl* web_contents_;
483 486
484 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 487 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
485 }; 488 };
486 489
487 } // namespace content 490 } // namespace content
488 491
489 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 492 #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