OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 public: | 83 public: |
84 // ThreadableLoaderOptions argument configures this ThreadableLoader's | 84 // ThreadableLoaderOptions argument configures this ThreadableLoader's |
85 // behavior. | 85 // behavior. |
86 // | 86 // |
87 // ResourceLoaderOptions argument will be passed to the FetchRequest | 87 // ResourceLoaderOptions argument will be passed to the FetchRequest |
88 // that this ThreadableLoader creates. It can be altered e.g. when | 88 // that this ThreadableLoader creates. It can be altered e.g. when |
89 // redirect happens. | 89 // redirect happens. |
90 static void loadResourceSynchronously(ExecutionContext&, const ResourceR
equest&, ThreadableLoaderClient&, const ThreadableLoaderOptions&, const Resource
LoaderOptions&); | 90 static void loadResourceSynchronously(ExecutionContext&, const ResourceR
equest&, ThreadableLoaderClient&, const ThreadableLoaderOptions&, const Resource
LoaderOptions&); |
91 static PassRefPtr<ThreadableLoader> create(ExecutionContext&, Threadable
LoaderClient*, const ResourceRequest&, const ThreadableLoaderOptions&, const Res
ourceLoaderOptions&); | 91 static PassRefPtr<ThreadableLoader> create(ExecutionContext&, Threadable
LoaderClient*, const ResourceRequest&, const ThreadableLoaderOptions&, const Res
ourceLoaderOptions&); |
92 | 92 |
93 // A ThreadableLoader may have a timeout specified. It is possible, in s
ome cases, for | |
94 // the timeout to be overridden after the request is sent (for example,
XMLHttpRequests | |
95 // may override their timeout setting after sending). | |
96 // | |
97 // Set a new timeout relative to the time the request started, in millis
econds. | |
98 virtual void overrideTimeout(unsigned long timeoutMilliseconds) = 0; | |
99 | |
100 virtual void cancel() = 0; | 93 virtual void cancel() = 0; |
101 | 94 |
102 virtual ~ThreadableLoader() { } | 95 virtual ~ThreadableLoader() { } |
103 | 96 |
104 protected: | 97 protected: |
105 ThreadableLoader() { } | 98 ThreadableLoader() { } |
106 }; | 99 }; |
107 | 100 |
108 } // namespace WebCore | 101 } // namespace WebCore |
109 | 102 |
110 #endif // ThreadableLoader_h | 103 #endif // ThreadableLoader_h |
OLD | NEW |