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

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

Issue 333823006: Revert "Allow XHR timeout attribute to be overridden after send(), per spec" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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