| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ThreadableLoadingContext_h | 5 #ifndef ThreadableLoadingContext_h |
| 6 #define ThreadableLoadingContext_h | 6 #define ThreadableLoadingContext_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/TaskRunnerHelper.h" | 9 #include "core/dom/TaskRunnerHelper.h" |
| 10 #include "core/frame/UseCounter.h" | 10 #include "core/frame/UseCounter.h" |
| 11 #include "platform/heap/GarbageCollected.h" | 11 #include "platform/heap/GarbageCollected.h" |
| 12 #include "platform/weborigin/KURL.h" | 12 #include "platform/weborigin/KURL.h" |
| 13 #include "wtf/Forward.h" | 13 #include "platform/wtf/Forward.h" |
| 14 #include "wtf/Noncopyable.h" | 14 #include "platform/wtf/Noncopyable.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class Document; | 18 class Document; |
| 19 class ResourceFetcher; | 19 class ResourceFetcher; |
| 20 class SecurityOrigin; | 20 class SecurityOrigin; |
| 21 class WebTaskRunner; | 21 class WebTaskRunner; |
| 22 | 22 |
| 23 // An abstract interface for top-level loading context. | 23 // An abstract interface for top-level loading context. |
| 24 // This should be accessed only from the thread where the loading | 24 // This should be accessed only from the thread where the loading |
| (...skipping 20 matching lines...) Expand all Loading... |
| 45 | 45 |
| 46 // TODO(kinuko): Try getting rid of dependency to Document. | 46 // TODO(kinuko): Try getting rid of dependency to Document. |
| 47 virtual Document* GetLoadingDocument() { return nullptr; } | 47 virtual Document* GetLoadingDocument() { return nullptr; } |
| 48 | 48 |
| 49 DEFINE_INLINE_VIRTUAL_TRACE() {} | 49 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif // ThreadableLoadingContext_h | 54 #endif // ThreadableLoadingContext_h |
| OLD | NEW |