| 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_FRAME_SCHEDULE
R_IMPL_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_FRAME_SCHEDULE
R_IMPL_H_ |
| 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_FRAME_SCHEDULE
R_IMPL_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_FRAME_SCHEDULE
R_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // WebFrameScheduler implementation: | 41 // WebFrameScheduler implementation: |
| 42 void SetFrameVisible(bool frame_visible) override; | 42 void SetFrameVisible(bool frame_visible) override; |
| 43 void SetPageThrottled(bool page_throttled) override; | 43 void SetPageThrottled(bool page_throttled) override; |
| 44 void SetSuspended(bool frame_suspended) override; | 44 void SetSuspended(bool frame_suspended) override; |
| 45 void SetCrossOrigin(bool cross_origin) override; | 45 void SetCrossOrigin(bool cross_origin) override; |
| 46 RefPtr<WebTaskRunner> LoadingTaskRunner() override; | 46 RefPtr<WebTaskRunner> LoadingTaskRunner() override; |
| 47 RefPtr<WebTaskRunner> TimerTaskRunner() override; | 47 RefPtr<WebTaskRunner> TimerTaskRunner() override; |
| 48 RefPtr<WebTaskRunner> SuspendableTaskRunner() override; | 48 RefPtr<WebTaskRunner> SuspendableTaskRunner() override; |
| 49 RefPtr<WebTaskRunner> UnthrottledTaskRunner() override; | 49 RefPtr<WebTaskRunner> UnthrottledTaskRunner() override; |
| 50 RefPtr<WebTaskRunner> CompositorTaskRunner() override; |
| 50 WebViewScheduler* GetWebViewScheduler() override; | 51 WebViewScheduler* GetWebViewScheduler() override; |
| 51 void DidStartLoading(unsigned long identifier) override; | 52 void DidStartLoading(unsigned long identifier) override; |
| 52 void DidStopLoading(unsigned long identifier) override; | 53 void DidStopLoading(unsigned long identifier) override; |
| 53 void SetDocumentParsingInBackground(bool background_parser_active) override; | 54 void SetDocumentParsingInBackground(bool background_parser_active) override; |
| 54 void OnFirstMeaningfulPaint() override; | 55 void OnFirstMeaningfulPaint() override; |
| 55 std::unique_ptr<ActiveConnectionHandle> OnActiveConnectionCreated() override; | 56 std::unique_ptr<ActiveConnectionHandle> OnActiveConnectionCreated() override; |
| 56 | 57 |
| 57 void AsValueInto(base::trace_event::TracedValue* state) const; | 58 void AsValueInto(base::trace_event::TracedValue* state) const; |
| 58 | 59 |
| 59 bool has_active_connection() const { return active_connection_count_; } | 60 bool has_active_connection() const { return active_connection_count_; } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 107 |
| 107 base::WeakPtrFactory<WebFrameSchedulerImpl> weak_factory_; | 108 base::WeakPtrFactory<WebFrameSchedulerImpl> weak_factory_; |
| 108 | 109 |
| 109 DISALLOW_COPY_AND_ASSIGN(WebFrameSchedulerImpl); | 110 DISALLOW_COPY_AND_ASSIGN(WebFrameSchedulerImpl); |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 } // namespace scheduler | 113 } // namespace scheduler |
| 113 } // namespace blink | 114 } // namespace blink |
| 114 | 115 |
| 115 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_FRAME_SCHED
ULER_IMPL_H_ | 116 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_FRAME_SCHED
ULER_IMPL_H_ |
| OLD | NEW |