OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 5877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5888 { | 5888 { |
5889 if (frame()) | 5889 if (frame()) |
5890 return m_frame->frameScheduler()->timerTaskRunner(); | 5890 return m_frame->frameScheduler()->timerTaskRunner(); |
5891 if (m_importsController) | 5891 if (m_importsController) |
5892 return m_importsController->master()->timerTaskRunner(); | 5892 return m_importsController->master()->timerTaskRunner(); |
5893 if (m_contextDocument) | 5893 if (m_contextDocument) |
5894 return m_contextDocument->timerTaskRunner(); | 5894 return m_contextDocument->timerTaskRunner(); |
5895 return Platform::current()->currentThread()->scheduler()->timerTaskRunner(); | 5895 return Platform::current()->currentThread()->scheduler()->timerTaskRunner(); |
5896 } | 5896 } |
5897 | 5897 |
| 5898 WebTaskRunner* Document::unthrottledTaskRunner() const |
| 5899 { |
| 5900 if (frame()) |
| 5901 return m_frame->frameScheduler()->unthrottledTaskRunner(); |
| 5902 if (m_importsController) |
| 5903 return m_importsController->master()->unthrottledTaskRunner(); |
| 5904 if (m_contextDocument) |
| 5905 return m_contextDocument->unthrottledTaskRunner(); |
| 5906 return Platform::current()->currentThread()->getWebTaskRunner(); |
| 5907 } |
| 5908 |
5898 void Document::enforceInsecureRequestPolicy(WebInsecureRequestPolicy policy) | 5909 void Document::enforceInsecureRequestPolicy(WebInsecureRequestPolicy policy) |
5899 { | 5910 { |
5900 // Combine the new policy with the existing policy, as a base policy may be | 5911 // Combine the new policy with the existing policy, as a base policy may be |
5901 // inherited from a remote parent before this page's policy is set. In other | 5912 // inherited from a remote parent before this page's policy is set. In other |
5902 // words, insecure requests should be upgraded or blocked if _either_ the | 5913 // words, insecure requests should be upgraded or blocked if _either_ the |
5903 // existing policy or the newly enforced policy triggers upgrades or | 5914 // existing policy or the newly enforced policy triggers upgrades or |
5904 // blockage. | 5915 // blockage. |
5905 setInsecureRequestPolicy(getInsecureRequestPolicy() | policy); | 5916 setInsecureRequestPolicy(getInsecureRequestPolicy() | policy); |
5906 if (frame()) | 5917 if (frame()) |
5907 frame()->loader().client()->didEnforceInsecureRequestPolicy(getInsecureR
equestPolicy()); | 5918 frame()->loader().client()->didEnforceInsecureRequestPolicy(getInsecureR
equestPolicy()); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6030 } | 6041 } |
6031 | 6042 |
6032 void showLiveDocumentInstances() | 6043 void showLiveDocumentInstances() |
6033 { | 6044 { |
6034 WeakDocumentSet& set = liveDocumentSet(); | 6045 WeakDocumentSet& set = liveDocumentSet(); |
6035 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6046 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6036 for (Document* document : set) | 6047 for (Document* document : set) |
6037 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6048 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6038 } | 6049 } |
6039 #endif | 6050 #endif |
OLD | NEW |