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

Side by Side Diff: content/browser/web_contents/web_contents_impl.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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 int GetCapturerCount() const override; 318 int GetCapturerCount() const override;
319 bool IsAudioMuted() const override; 319 bool IsAudioMuted() const override;
320 void SetAudioMuted(bool mute) override; 320 void SetAudioMuted(bool mute) override;
321 bool IsConnectedToBluetoothDevice() const override; 321 bool IsConnectedToBluetoothDevice() const override;
322 bool IsCrashed() const override; 322 bool IsCrashed() const override;
323 void SetIsCrashed(base::TerminationStatus status, int error_code) override; 323 void SetIsCrashed(base::TerminationStatus status, int error_code) override;
324 base::TerminationStatus GetCrashedStatus() const override; 324 base::TerminationStatus GetCrashedStatus() const override;
325 int GetCrashedErrorCode() const override; 325 int GetCrashedErrorCode() const override;
326 bool IsBeingDestroyed() const override; 326 bool IsBeingDestroyed() const override;
327 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; 327 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override;
328 void OnAudioStateChanged(bool is_audio_playing) override;
328 base::TimeTicks GetLastActiveTime() const override; 329 base::TimeTicks GetLastActiveTime() const override;
329 void SetLastActiveTime(base::TimeTicks last_active_time) override; 330 void SetLastActiveTime(base::TimeTicks last_active_time) override;
330 void WasShown() override; 331 void WasShown() override;
331 void WasHidden() override; 332 void WasHidden() override;
332 bool NeedToFireBeforeUnload() override; 333 bool NeedToFireBeforeUnload() override;
333 void DispatchBeforeUnload() override; 334 void DispatchBeforeUnload() override;
334 void AttachToOuterWebContentsFrame( 335 void AttachToOuterWebContentsFrame(
335 WebContents* outer_web_contents, 336 WebContents* outer_web_contents,
336 RenderFrameHost* outer_contents_frame) override; 337 RenderFrameHost* outer_contents_frame) override;
337 void Stop() override; 338 void Stop() override;
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 // Adds/removes a callback called on creation of each new WebContents. 1450 // Adds/removes a callback called on creation of each new WebContents.
1450 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1451 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1451 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1452 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1452 1453
1453 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1454 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1454 }; 1455 };
1455 1456
1456 } // namespace content 1457 } // namespace content
1457 1458
1458 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1459 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698