| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER
_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER
_H_ |
| 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER
_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER
_H_ |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" |
| 8 #include "platform/wtf/Functional.h" | 9 #include "platform/wtf/Functional.h" |
| 9 #include "public/platform/BlameContext.h" | 10 #include "public/platform/BlameContext.h" |
| 10 #include "public/platform/WebCommon.h" | |
| 11 | 11 |
| 12 #include <memory> | 12 #include <memory> |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class WebFrameScheduler; | 16 class WebFrameScheduler; |
| 17 | 17 |
| 18 class BLINK_PLATFORM_EXPORT WebViewScheduler { | 18 class PLATFORM_EXPORT WebViewScheduler { |
| 19 public: | 19 public: |
| 20 // Helper interface to plumb settings from WebSettings to scheduler. | 20 // Helper interface to plumb settings from WebSettings to scheduler. |
| 21 class BLINK_PLATFORM_EXPORT WebViewSchedulerSettings { | 21 class PLATFORM_EXPORT WebViewSchedulerSettings { |
| 22 public: | 22 public: |
| 23 virtual ~WebViewSchedulerSettings() {} | 23 virtual ~WebViewSchedulerSettings() {} |
| 24 | 24 |
| 25 // Background throttling aggressiveness settings. | 25 // Background throttling aggressiveness settings. |
| 26 virtual float ExpensiveBackgroundThrottlingCPUBudget() = 0; | 26 virtual float ExpensiveBackgroundThrottlingCPUBudget() = 0; |
| 27 virtual float ExpensiveBackgroundThrottlingInitialBudget() = 0; | 27 virtual float ExpensiveBackgroundThrottlingInitialBudget() = 0; |
| 28 virtual float ExpensiveBackgroundThrottlingMaxBudget() = 0; | 28 virtual float ExpensiveBackgroundThrottlingMaxBudget() = 0; |
| 29 virtual float ExpensiveBackgroundThrottlingMaxDelay() = 0; | 29 virtual float ExpensiveBackgroundThrottlingMaxDelay() = 0; |
| 30 }; | 30 }; |
| 31 | 31 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 std::unique_ptr<WTF::Closure> budget_exhausted_callback) = 0; | 91 std::unique_ptr<WTF::Closure> budget_exhausted_callback) = 0; |
| 92 | 92 |
| 93 virtual void AudioStateChanged(bool is_audio_playing) = 0; | 93 virtual void AudioStateChanged(bool is_audio_playing) = 0; |
| 94 | 94 |
| 95 virtual bool HasActiveConnectionForTest() const = 0; | 95 virtual bool HasActiveConnectionForTest() const = 0; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace blink | 98 } // namespace blink |
| 99 | 99 |
| 100 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_VIEW_SCHEDU
LER_H_ | 100 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_VIEW_SCHEDU
LER_H_ |
| OLD | NEW |