OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013, Intel Corporation | 3 * Copyright (C) 2013, Intel Corporation |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 namespace blink { | 49 namespace blink { |
50 | 50 |
51 class Document; | 51 class Document; |
52 class KURL; | 52 class KURL; |
53 class ResourceRequest; | 53 class ResourceRequest; |
54 class SecurityOrigin; | 54 class SecurityOrigin; |
55 class ThreadableLoaderClient; | 55 class ThreadableLoaderClient; |
56 | 56 |
57 class CORE_EXPORT DocumentThreadableLoader final : public ThreadableLoader, priv
ate RawResourceClient { | 57 class CORE_EXPORT DocumentThreadableLoader final : public ThreadableLoader, priv
ate RawResourceClient { |
| 58 USING_GARBAGE_COLLECTED_MIXIN(DocumentThreadableLoader); |
58 public: | 59 public: |
59 static void loadResourceSynchronously(Document&, const ResourceRequest&,
ThreadableLoaderClient&, const ThreadableLoaderOptions&, const ResourceLoaderOp
tions&); | 60 static void loadResourceSynchronously(Document&, const ResourceRequest&,
ThreadableLoaderClient&, const ThreadableLoaderOptions&, const ResourceLoaderOp
tions&); |
60 static DocumentThreadableLoader* create(Document&, ThreadableLoaderClien
t*, const ThreadableLoaderOptions&, const ResourceLoaderOptions&); | 61 static DocumentThreadableLoader* create(Document&, ThreadableLoaderClien
t*, const ThreadableLoaderOptions&, const ResourceLoaderOptions&); |
61 ~DocumentThreadableLoader() override; | 62 ~DocumentThreadableLoader() override; |
62 | 63 |
63 void start(const ResourceRequest&) override; | 64 void start(const ResourceRequest&) override; |
64 | 65 |
65 void overrideTimeout(unsigned long timeout) override; | 66 void overrideTimeout(unsigned long timeout) override; |
66 | 67 |
67 // |this| may be dead after calling this method in async mode. | 68 // |this| may be dead after calling this method in async mode. |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // header when following the redirect. | 232 // header when following the redirect. |
232 bool m_didRedirect; | 233 bool m_didRedirect; |
233 Referrer m_referrerAfterRedirect; | 234 Referrer m_referrerAfterRedirect; |
234 | 235 |
235 WeakPtrFactory<DocumentThreadableLoader> m_weakFactory; | 236 WeakPtrFactory<DocumentThreadableLoader> m_weakFactory; |
236 }; | 237 }; |
237 | 238 |
238 } // namespace blink | 239 } // namespace blink |
239 | 240 |
240 #endif // DocumentThreadableLoader_h | 241 #endif // DocumentThreadableLoader_h |
OLD | NEW |