| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 namespace blink { | 54 namespace blink { |
| 55 | 55 |
| 56 namespace { | 56 namespace { |
| 57 | 57 |
| 58 void runCallback(ExecutionContext* executionContext, | 58 void runCallback(ExecutionContext* executionContext, |
| 59 std::unique_ptr<WTF::Closure> task) { | 59 std::unique_ptr<WTF::Closure> task) { |
| 60 if (!executionContext) | 60 if (!executionContext) |
| 61 return; | 61 return; |
| 62 DCHECK(executionContext->isContextThread()); | 62 DCHECK(executionContext->isContextThread()); |
| 63 probe::AsyncTask asyncTask(executionContext, task.get(), | 63 probe::AsyncTask asyncTask(executionContext, task.get()); |
| 64 true /* isInstrumented */); | |
| 65 (*task)(); | 64 (*task)(); |
| 66 } | 65 } |
| 67 | 66 |
| 68 } // namespace | 67 } // namespace |
| 69 | 68 |
| 70 // static | 69 // static |
| 71 DOMFileSystem* DOMFileSystem::create(ExecutionContext* context, | 70 DOMFileSystem* DOMFileSystem::create(ExecutionContext* context, |
| 72 const String& name, | 71 const String& name, |
| 73 FileSystemType type, | 72 FileSystemType type, |
| 74 const KURL& rootURL) { | 73 const KURL& rootURL) { |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 WTF::passed(std::move(task)))); | 215 WTF::passed(std::move(task)))); |
| 217 } | 216 } |
| 218 | 217 |
| 219 DEFINE_TRACE(DOMFileSystem) { | 218 DEFINE_TRACE(DOMFileSystem) { |
| 220 visitor->trace(m_rootEntry); | 219 visitor->trace(m_rootEntry); |
| 221 DOMFileSystemBase::trace(visitor); | 220 DOMFileSystemBase::trace(visitor); |
| 222 ContextClient::trace(visitor); | 221 ContextClient::trace(visitor); |
| 223 } | 222 } |
| 224 | 223 |
| 225 } // namespace blink | 224 } // namespace blink |
| OLD | NEW |