| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void InProcessWorkerObjectProxy::confirmMessageFromWorkerObject(bool hasPendingA
ctivity) | 59 void InProcessWorkerObjectProxy::confirmMessageFromWorkerObject(bool hasPendingA
ctivity) |
| 60 { | 60 { |
| 61 getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&InPr
ocessWorkerMessagingProxy::confirmMessageFromWorkerObject, AllowCrossThreadAcces
s(m_messagingProxy), hasPendingActivity)); | 61 getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&InPr
ocessWorkerMessagingProxy::confirmMessageFromWorkerObject, AllowCrossThreadAcces
s(m_messagingProxy), hasPendingActivity)); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void InProcessWorkerObjectProxy::reportPendingActivity(bool hasPendingActivity) | 64 void InProcessWorkerObjectProxy::reportPendingActivity(bool hasPendingActivity) |
| 65 { | 65 { |
| 66 getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&InPr
ocessWorkerMessagingProxy::reportPendingActivity, AllowCrossThreadAccess(m_messa
gingProxy), hasPendingActivity)); | 66 getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&InPr
ocessWorkerMessagingProxy::reportPendingActivity, AllowCrossThreadAccess(m_messa
gingProxy), hasPendingActivity)); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void InProcessWorkerObjectProxy::reportException(const String& errorMessage, int
lineNumber, int columnNumber, const String& sourceURL, int exceptionId) | 69 void InProcessWorkerObjectProxy::reportException(const String& errorMessage, Pas
sOwnPtr<SourceLocation> location) |
| 70 { | 70 { |
| 71 getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&InPr
ocessWorkerMessagingProxy::reportException, AllowCrossThreadAccess(m_messagingPr
oxy), errorMessage, lineNumber, columnNumber, sourceURL, exceptionId)); | 71 getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&InPr
ocessWorkerMessagingProxy::reportException, AllowCrossThreadAccess(m_messagingPr
oxy), errorMessage, passed(std::move(location)))); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void InProcessWorkerObjectProxy::reportConsoleMessage(ConsoleMessage* consoleMes
sage) | 74 void InProcessWorkerObjectProxy::reportConsoleMessage(ConsoleMessage* consoleMes
sage) |
| 75 { | 75 { |
| 76 getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&InPr
ocessWorkerMessagingProxy::reportConsoleMessage, AllowCrossThreadAccess(m_messag
ingProxy), consoleMessage->source(), consoleMessage->level(), consoleMessage->me
ssage(), consoleMessage->lineNumber(), consoleMessage->url())); | 76 getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&InPr
ocessWorkerMessagingProxy::reportConsoleMessage, AllowCrossThreadAccess(m_messag
ingProxy), consoleMessage->source(), consoleMessage->level(), consoleMessage->me
ssage(), consoleMessage->lineNumber(), consoleMessage->url())); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void InProcessWorkerObjectProxy::postMessageToPageInspector(const String& messag
e) | 79 void InProcessWorkerObjectProxy::postMessageToPageInspector(const String& messag
e) |
| 80 { | 80 { |
| 81 ExecutionContext* context = getExecutionContext(); | 81 ExecutionContext* context = getExecutionContext(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 106 { | 106 { |
| 107 } | 107 } |
| 108 | 108 |
| 109 ExecutionContext* InProcessWorkerObjectProxy::getExecutionContext() | 109 ExecutionContext* InProcessWorkerObjectProxy::getExecutionContext() |
| 110 { | 110 { |
| 111 DCHECK(m_messagingProxy); | 111 DCHECK(m_messagingProxy); |
| 112 return m_messagingProxy->getExecutionContext(); | 112 return m_messagingProxy->getExecutionContext(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace blink | 115 } // namespace blink |
| OLD | NEW |