| OLD | NEW | 
|   1 /* |   1 /* | 
|   2  * Copyright (C) 2009, 2011 Google Inc. All rights reserved. |   2  * Copyright (C) 2009, 2011 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  52   // The WebURLLoader may be deleted in a call to its client. |  52   // The WebURLLoader may be deleted in a call to its client. | 
|  53   virtual ~WebURLLoader() {} |  53   virtual ~WebURLLoader() {} | 
|  54  |  54  | 
|  55   // Load the request synchronously, returning results directly to the |  55   // Load the request synchronously, returning results directly to the | 
|  56   // caller upon completion.  There is no mechanism to interrupt a |  56   // caller upon completion.  There is no mechanism to interrupt a | 
|  57   // synchronous load!! |  57   // synchronous load!! | 
|  58   virtual void loadSynchronously(const WebURLRequest&, |  58   virtual void loadSynchronously(const WebURLRequest&, | 
|  59                                  WebURLResponse&, |  59                                  WebURLResponse&, | 
|  60                                  WebURLError&, |  60                                  WebURLError&, | 
|  61                                  WebData&, |  61                                  WebData&, | 
|  62                                  int64_t& encodedDataLength) = 0; |  62                                  int64_t& encodedDataLength, | 
 |  63                                  int64_t& encodedBodyLength) = 0; | 
|  63  |  64  | 
|  64   // Load the request asynchronously, sending notifications to the given |  65   // Load the request asynchronously, sending notifications to the given | 
|  65   // client.  The client will receive no further notifications if the |  66   // client.  The client will receive no further notifications if the | 
|  66   // loader is disposed before it completes its work. |  67   // loader is disposed before it completes its work. | 
|  67   virtual void loadAsynchronously(const WebURLRequest&, |  68   virtual void loadAsynchronously(const WebURLRequest&, | 
|  68                                   WebURLLoaderClient*) = 0; |  69                                   WebURLLoaderClient*) = 0; | 
|  69  |  70  | 
|  70   // Cancels an asynchronous load.  This will appear as a load error to |  71   // Cancels an asynchronous load.  This will appear as a load error to | 
|  71   // the client. |  72   // the client. | 
|  72   virtual void cancel() = 0; |  73   virtual void cancel() = 0; | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
|  86   // Sets the task runner for which any loading tasks should be posted on. |  87   // Sets the task runner for which any loading tasks should be posted on. | 
|  87   // Use WebTaskRunner version when it's called from core or module directory, |  88   // Use WebTaskRunner version when it's called from core or module directory, | 
|  88   // since we don't directly expose base to them. |  89   // since we don't directly expose base to them. | 
|  89   BLINK_PLATFORM_EXPORT void setLoadingTaskRunner(WebTaskRunner*); |  90   BLINK_PLATFORM_EXPORT void setLoadingTaskRunner(WebTaskRunner*); | 
|  90   virtual void setLoadingTaskRunner(base::SingleThreadTaskRunner*) = 0; |  91   virtual void setLoadingTaskRunner(base::SingleThreadTaskRunner*) = 0; | 
|  91 }; |  92 }; | 
|  92  |  93  | 
|  93 }  // namespace blink |  94 }  // namespace blink | 
|  94  |  95  | 
|  95 #endif |  96 #endif | 
| OLD | NEW |