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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h

Issue 2652973002: [scheduler] Plumb websocket information to scheduler (Closed)
Patch Set: Removed include Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h b/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h
index 141ea7cbce16ba6c0637c446867e7b49afbfee68..2414ffcad959f54b55d562219e2871dc56608839 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h
@@ -48,11 +48,15 @@ class WebFrameSchedulerImpl : public WebFrameScheduler {
WebViewScheduler* webViewScheduler() override;
void didStartLoading(unsigned long identifier) override;
void didStopLoading(unsigned long identifier) override;
+ void didOpenWebSocket() override;
+ void didCloseWebSocket() override;
void setDocumentParsingInBackground(bool background_parser_active) override;
void onFirstMeaningfulPaint() override;
void AsValueInto(base::trace_event::TracedValue* state) const;
+ bool has_websocket_connection() const { return websocket_connections_; }
+
private:
friend class WebViewSchedulerImpl;
@@ -77,6 +81,7 @@ class WebFrameSchedulerImpl : public WebFrameScheduler {
bool page_throttled_;
bool frame_suspended_;
bool cross_origin_;
+ int websocket_connections_;
alex clarke (OOO till 29th) 2017/01/24 18:15:33 Lets be explicit: websocket_connection_count_
altimin 2017/01/24 18:39:04 Done.
DISALLOW_COPY_AND_ASSIGN(WebFrameSchedulerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698