LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2016 Igalia S.L. | 3 * Copyright (C) 2016 Igalia S.L. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 switch (policyAction) { | 315 switch (policyAction) { |
316 case PolicyAction::Use: | 316 case PolicyAction::Use: |
317 m_buffer.resize(bufferSize); | 317 m_buffer.resize(bufferSize); |
318 read(); | 318 read(); |
319 break; | 319 break; |
320 case PolicyAction::Suspend: | 320 case PolicyAction::Suspend: |
321 LOG_ERROR("PolicyAction::Suspend encountered - Treating as PolicyAct
ion::Ignore for now"); | 321 LOG_ERROR("PolicyAction::Suspend encountered - Treating as PolicyAct
ion::Ignore for now"); |
322 FALLTHROUGH; | 322 FALLTHROUGH; |
323 case PolicyAction::Ignore: | 323 case PolicyAction::Ignore: |
324 break; | 324 break; |
| 325 case PolicyAction::IgnoreAndLockBackForwardList: |
| 326 ASSERT_NOT_REACHED(); |
| 327 break; |
325 case PolicyAction::Download: | 328 case PolicyAction::Download: |
326 download(); | 329 download(); |
327 break; | 330 break; |
328 } | 331 } |
329 }); | 332 }); |
330 } | 333 } |
331 | 334 |
332 void NetworkDataTaskBlob::read() | 335 void NetworkDataTaskBlob::read() |
333 { | 336 { |
334 ASSERT(RunLoop::isMain()); | 337 ASSERT(RunLoop::isMain()); |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 ASSERT(!m_sandboxExtension); | 581 ASSERT(!m_sandboxExtension); |
579 | 582 |
580 LOG(NetworkSession, "%p - NetworkDataTaskBlob::didFinish", this); | 583 LOG(NetworkSession, "%p - NetworkDataTaskBlob::didFinish", this); |
581 | 584 |
582 clearStream(); | 585 clearStream(); |
583 ASSERT(m_client); | 586 ASSERT(m_client); |
584 m_client->didCompleteWithError({ }); | 587 m_client->didCompleteWithError({ }); |
585 } | 588 } |
586 | 589 |
587 } // namespace WebKit | 590 } // namespace WebKit |
LEFT | RIGHT |