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

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

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: WebFrames! 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.h » ('j') | 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_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 // Method for notifying WebContents that audio started or stopped being
clamy 2016/10/05 13:31:21 nit:s/Method for notifying WebContents/Notifies th
411 // audible.
412 virtual void OnAudioStateChanged(bool is_audio_playing) = 0;
413
410 // Get/Set the last time that the WebContents was made active (either when it 414 // Get/Set the last time that the WebContents was made active (either when it
411 // was created or shown with WasShown()). 415 // was created or shown with WasShown()).
412 virtual base::TimeTicks GetLastActiveTime() const = 0; 416 virtual base::TimeTicks GetLastActiveTime() const = 0;
413 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0; 417 virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0;
414 418
415 // Invoked when the WebContents becomes shown/hidden. 419 // Invoked when the WebContents becomes shown/hidden.
416 virtual void WasShown() = 0; 420 virtual void WasShown() = 0;
417 virtual void WasHidden() = 0; 421 virtual void WasHidden() = 0;
418 422
419 // Returns true if the before unload and unload listeners need to be 423 // 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 755
752 private: 756 private:
753 // This interface should only be implemented inside content. 757 // This interface should only be implemented inside content.
754 friend class WebContentsImpl; 758 friend class WebContentsImpl;
755 WebContents() {} 759 WebContents() {}
756 }; 760 };
757 761
758 } // namespace content 762 } // namespace content
759 763
760 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 764 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698