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

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

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Rebased Created 4 years, 2 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_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 virtual base::TerminationStatus GetCrashedStatus() const = 0; 390 virtual base::TerminationStatus GetCrashedStatus() const = 0;
391 virtual int GetCrashedErrorCode() const = 0; 391 virtual int GetCrashedErrorCode() const = 0;
392 392
393 // Whether the tab is in the process of being destroyed. 393 // Whether the tab is in the process of being destroyed.
394 virtual bool IsBeingDestroyed() const = 0; 394 virtual bool IsBeingDestroyed() const = 0;
395 395
396 // Convenience method for notifying the delegate of a navigation state 396 // Convenience method for notifying the delegate of a navigation state
397 // change. 397 // change.
398 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; 398 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0;
399 399
400 // Notifies the WebContents that audio started or stopped being audible.
401 virtual void OnAudioStateChanged(bool is_audio_playing) = 0;
miu 2016/11/15 22:04:04 Throughout this change "playing" is inaccurate. "p
altimin 2016/11/16 12:22:32 Addressed in crrev.com/2496173003
402
400 // Get/Set the last time that the WebContents was made active (either when it 403 // Get/Set the last time that the WebContents was made active (either when it
401 // was created or shown with WasShown()). 404 // was created or shown with WasShown()).
402 virtual base::TimeTicks GetLastActiveTime() const = 0; 405 virtual base::TimeTicks GetLastActiveTime() const = 0;
403 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0; 406 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0;
404 407
405 // Invoked when the WebContents becomes shown/hidden. 408 // Invoked when the WebContents becomes shown/hidden.
406 virtual void WasShown() = 0; 409 virtual void WasShown() = 0;
407 virtual void WasHidden() = 0; 410 virtual void WasHidden() = 0;
408 411
409 // Returns true if the before unload and unload listeners need to be 412 // Returns true if the before unload and unload listeners need to be
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 756
754 private: 757 private:
755 // This interface should only be implemented inside content. 758 // This interface should only be implemented inside content.
756 friend class WebContentsImpl; 759 friend class WebContentsImpl;
757 WebContents() {} 760 WebContents() {}
758 }; 761 };
759 762
760 } // namespace content 763 } // namespace content
761 764
762 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 765 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698