Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: Source/core/loader/ThreadableLoader.h

Issue 273993002: Allow XHR timeout attribute to be overridden after send(), per spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase again Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 public: 121 public:
122 // ThreadableLoaderOptions argument configures this ThreadableLoader's 122 // ThreadableLoaderOptions argument configures this ThreadableLoader's
123 // behavior. 123 // behavior.
124 // 124 //
125 // ResourceLoaderOptions argument will be passed to the FetchRequest 125 // ResourceLoaderOptions argument will be passed to the FetchRequest
126 // that this ThreadableLoader creates. It can be altered e.g. when 126 // that this ThreadableLoader creates. It can be altered e.g. when
127 // redirect happens. 127 // redirect happens.
128 static void loadResourceSynchronously(ExecutionContext&, const ResourceR equest&, ThreadableLoaderClient&, const ThreadableLoaderOptions&, const Resource LoaderOptions&); 128 static void loadResourceSynchronously(ExecutionContext&, const ResourceR equest&, ThreadableLoaderClient&, const ThreadableLoaderOptions&, const Resource LoaderOptions&);
129 static PassRefPtr<ThreadableLoader> create(ExecutionContext&, Threadable LoaderClient*, const ResourceRequest&, const ThreadableLoaderOptions&, const Res ourceLoaderOptions&); 129 static PassRefPtr<ThreadableLoader> create(ExecutionContext&, Threadable LoaderClient*, const ResourceRequest&, const ThreadableLoaderOptions&, const Res ourceLoaderOptions&);
130 130
131 // A ThreadableLoader may have a timeout specified. It is possible, in s ome cases, for
132 // the timeout to be overridden after the request is sent (for example, XMLHttpRequests
133 // may override their timeout setting after sending).
134 //
135 // Set a new timeout relative to the time the request started, in millis econds.
136 virtual void overrideTimeout(unsigned long timeoutMilliseconds) = 0;
137
131 virtual void cancel() = 0; 138 virtual void cancel() = 0;
132 139
133 virtual ~ThreadableLoader() { } 140 virtual ~ThreadableLoader() { }
134 141
135 protected: 142 protected:
136 ThreadableLoader() { } 143 ThreadableLoader() { }
137 }; 144 };
138 145
139 } // namespace blink 146 } // namespace blink
140 147
141 #endif // ThreadableLoader_h 148 #endif // ThreadableLoader_h
OLDNEW
« no previous file with comments | « Source/core/loader/DocumentThreadableLoader.cpp ('k') | Source/core/loader/WorkerThreadableLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698