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

Unified Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2704083002: Remove Page dependency from NetworkStateNotifier (Closed)
Patch Set: nullcheck for tests Created 3 years, 10 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/core/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index 6f484137bb3d1a33fcdce643f10d339ea68ae38d..cc8817b4f5425733acfcb945eef9d385392d9832 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -72,28 +72,6 @@ Page::PageSet& Page::ordinaryPages() {
return pages;
}
-void Page::networkStateChanged(bool online) {
- HeapVector<Member<LocalFrame>> frames;
-
- // Get all the frames of all the pages in all the page groups
- for (Page* page : allPages()) {
- for (Frame* frame = page->mainFrame(); frame;
- frame = frame->tree().traverseNext()) {
- // FIXME: There is currently no way to dispatch events to out-of-process
- // frames.
- if (frame->isLocalFrame())
- frames.push_back(toLocalFrame(frame));
- }
- }
-
- AtomicString eventName =
- online ? EventTypeNames::online : EventTypeNames::offline;
- for (const auto& frame : frames) {
- frame->domWindow()->dispatchEvent(Event::create(eventName));
- InspectorInstrumentation::networkStateChanged(frame.get(), online);
- }
-}
-
float deviceScaleFactor(LocalFrame* frame) {
if (!frame)
return 1;
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.h ('k') | third_party/WebKit/Source/modules/netinfo/NetworkInformation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698