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

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

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Switched to page messages 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 virtual base::TerminationStatus GetCrashedStatus() const = 0; 400 virtual base::TerminationStatus GetCrashedStatus() const = 0;
401 virtual int GetCrashedErrorCode() const = 0; 401 virtual int GetCrashedErrorCode() const = 0;
402 402
403 // Whether the tab is in the process of being destroyed. 403 // Whether the tab is in the process of being destroyed.
404 virtual bool IsBeingDestroyed() const = 0; 404 virtual bool IsBeingDestroyed() const = 0;
405 405
406 // Convenience method for notifying the delegate of a navigation state 406 // Convenience method for notifying the delegate of a navigation state
407 // change. 407 // change.
408 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; 408 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0;
409 409
410 // Notifies the WebContents that audio started or stopped being audible.
411 virtual void OnAudioStateChanged(bool is_audio_playing) = 0;
412
410 // Get/Set the last time that the WebContents was made active (either when it 413 // Get/Set the last time that the WebContents was made active (either when it
411 // was created or shown with WasShown()). 414 // was created or shown with WasShown()).
412 virtual base::TimeTicks GetLastActiveTime() const = 0; 415 virtual base::TimeTicks GetLastActiveTime() const = 0;
413 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0; 416 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0;
414 417
415 // Invoked when the WebContents becomes shown/hidden. 418 // Invoked when the WebContents becomes shown/hidden.
416 virtual void WasShown() = 0; 419 virtual void WasShown() = 0;
417 virtual void WasHidden() = 0; 420 virtual void WasHidden() = 0;
418 421
419 // Returns true if the before unload and unload listeners need to be 422 // Returns true if the before unload and unload listeners need to be
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 754
752 private: 755 private:
753 // This interface should only be implemented inside content. 756 // This interface should only be implemented inside content.
754 friend class WebContentsImpl; 757 friend class WebContentsImpl;
755 WebContents() {} 758 WebContents() {}
756 }; 759 };
757 760
758 } // namespace content 761 } // namespace content
759 762
760 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 763 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698