Title: [242646] trunk/Source/WebKit
Revision
242646
Author
[email protected]
Date
2019-03-08 11:01:31 -0800 (Fri, 08 Mar 2019)

Log Message

Rename AssertionState::Download.
https://bugs.webkit.org/show_bug.cgi?id=195465

Reviewed by Andy Estes.

It's (currently) about uploads and downloads.
Let's call it "UnboundedNetworking"

* NetworkProcess/Downloads/DownloadMap.cpp:
(WebKit::DownloadMap::add):

* UIProcess/ProcessAssertion.h:

* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::didSetAssertionState):

* UIProcess/ios/ProcessAssertionIOS.mm:
(WebKit::flagsForState):
(WebKit::reasonForState):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (242645 => 242646)


--- trunk/Source/WebKit/ChangeLog	2019-03-08 18:34:23 UTC (rev 242645)
+++ trunk/Source/WebKit/ChangeLog	2019-03-08 19:01:31 UTC (rev 242646)
@@ -1,3 +1,25 @@
+2019-03-08  Brady Eidson  <[email protected]>
+
+        Rename AssertionState::Download.
+        https://bugs.webkit.org/show_bug.cgi?id=195465
+
+        Reviewed by Andy Estes.
+
+        It's (currently) about uploads and downloads.
+        Let's call it "UnboundedNetworking"
+
+        * NetworkProcess/Downloads/DownloadMap.cpp:
+        (WebKit::DownloadMap::add):
+
+        * UIProcess/ProcessAssertion.h:
+
+        * UIProcess/WebProcessProxy.cpp:
+        (WebKit::WebProcessProxy::didSetAssertionState):
+
+        * UIProcess/ios/ProcessAssertionIOS.mm:
+        (WebKit::flagsForState):
+        (WebKit::reasonForState):
+
 2019-03-08  Simon Fraser  <[email protected]>
 
         [macOS UI-side compositing] Mouse handling can trigger a crash before we have a scrolling tree root

Modified: trunk/Source/WebKit/NetworkProcess/Downloads/DownloadMap.cpp (242645 => 242646)


--- trunk/Source/WebKit/NetworkProcess/Downloads/DownloadMap.cpp	2019-03-08 18:34:23 UTC (rev 242645)
+++ trunk/Source/WebKit/NetworkProcess/Downloads/DownloadMap.cpp	2019-03-08 19:01:31 UTC (rev 242646)
@@ -58,7 +58,7 @@
     auto result = m_downloads.add(downloadID, WTFMove(download));
     if (m_downloads.size() == 1) {
         ASSERT(!m_downloadAssertion);
-        m_downloadAssertion = std::make_unique<ProcessAssertion>(getpid(), "WebKit downloads"_s, AssertionState::Download);
+        m_downloadAssertion = std::make_unique<ProcessAssertion>(getpid(), "WebKit downloads"_s, AssertionState::UnboundedNetworking);
     }
 
     return result;

Modified: trunk/Source/WebKit/UIProcess/ProcessAssertion.h (242645 => 242646)


--- trunk/Source/WebKit/UIProcess/ProcessAssertion.h	2019-03-08 18:34:23 UTC (rev 242645)
+++ trunk/Source/WebKit/UIProcess/ProcessAssertion.h	2019-03-08 19:01:31 UTC (rev 242646)
@@ -44,7 +44,7 @@
 enum class AssertionState {
     Suspended,
     Background,
-    Download,
+    UnboundedNetworking,
     Foreground
 };
 

Modified: trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp (242645 => 242646)


--- trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp	2019-03-08 18:34:23 UTC (rev 242645)
+++ trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp	2019-03-08 19:01:31 UTC (rev 242646)
@@ -1172,7 +1172,7 @@
             page->processWillBecomeForeground();
         break;
     
-    case AssertionState::Download:
+    case AssertionState::UnboundedNetworking:
         ASSERT_NOT_REACHED();
     }
 

Modified: trunk/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm (242645 => 242646)


--- trunk/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm	2019-03-08 18:34:23 UTC (rev 242645)
+++ trunk/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm	2019-03-08 19:01:31 UTC (rev 242646)
@@ -139,7 +139,7 @@
     case AssertionState::Suspended:
         return suspendedTabFlags;
     case AssertionState::Background:
-    case AssertionState::Download:
+    case AssertionState::UnboundedNetworking:
         return backgroundTabFlags;
     case AssertionState::Foreground:
         return foregroundTabFlags;
@@ -149,7 +149,7 @@
 static BKSProcessAssertionReason reasonForState(AssertionState assertionState)
 {
     switch (assertionState) {
-    case AssertionState::Download:
+    case AssertionState::UnboundedNetworking:
         return BKSProcessAssertionReasonFinishTaskUnbounded;
     case AssertionState::Suspended:
     case AssertionState::Background:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to