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

Side by Side Diff: content/browser/web_contents/web_contents_impl.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_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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 int GetCapturerCount() const override; 320 int GetCapturerCount() const override;
321 bool IsAudioMuted() const override; 321 bool IsAudioMuted() const override;
322 void SetAudioMuted(bool mute) override; 322 void SetAudioMuted(bool mute) override;
323 bool IsConnectedToBluetoothDevice() const override; 323 bool IsConnectedToBluetoothDevice() const override;
324 bool IsCrashed() const override; 324 bool IsCrashed() const override;
325 void SetIsCrashed(base::TerminationStatus status, int error_code) override; 325 void SetIsCrashed(base::TerminationStatus status, int error_code) override;
326 base::TerminationStatus GetCrashedStatus() const override; 326 base::TerminationStatus GetCrashedStatus() const override;
327 int GetCrashedErrorCode() const override; 327 int GetCrashedErrorCode() const override;
328 bool IsBeingDestroyed() const override; 328 bool IsBeingDestroyed() const override;
329 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; 329 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override;
330 void OnAudioStateChanged(bool is_audio_playing) override;
330 base::TimeTicks GetLastActiveTime() const override; 331 base::TimeTicks GetLastActiveTime() const override;
331 void SetLastActiveTime(base::TimeTicks last_active_time) override; 332 void SetLastActiveTime(base::TimeTicks last_active_time) override;
332 void WasShown() override; 333 void WasShown() override;
333 void WasHidden() override; 334 void WasHidden() override;
334 bool NeedToFireBeforeUnload() override; 335 bool NeedToFireBeforeUnload() override;
335 void DispatchBeforeUnload() override; 336 void DispatchBeforeUnload() override;
336 void AttachToOuterWebContentsFrame( 337 void AttachToOuterWebContentsFrame(
337 WebContents* outer_web_contents, 338 WebContents* outer_web_contents,
338 RenderFrameHost* outer_contents_frame) override; 339 RenderFrameHost* outer_contents_frame) override;
339 void Stop() override; 340 void Stop() override;
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 // Adds/removes a callback called on creation of each new WebContents. 1486 // Adds/removes a callback called on creation of each new WebContents.
1486 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1487 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1487 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1488 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1488 1489
1489 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1490 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1490 }; 1491 };
1491 1492
1492 } // namespace content 1493 } // namespace content
1493 1494
1494 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1495 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698