Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / webkit / child / resource_loader_bridge.h
index e1cd310..2a54d61 100644 (file)
@@ -155,16 +155,14 @@ class ResourceLoaderBridge {
     // that case, OnReceivedData will not be called.
     // The encoded_data_length is the length of the encoded data transferred
     // over the network, which could be different from data length (e.g. for
-    // gzipped content), or -1 if unknown. It is only valid while devtools are
-    // attached. Otherwise it becomes -1.
+    // gzipped content).
     virtual void OnDownloadedData(int len, int encoded_data_length) = 0;
 
     // Called when a chunk of response data is available. This method may
     // be called multiple times or not at all if an error occurs.
     // The encoded_data_length is the length of the encoded data transferred
     // over the network, which could be different from data length (e.g. for
-    // gzipped content), or -1 if unknown. It is only valid while devtools are
-    // attached. Otherwise it becomes -1.
+    // gzipped content).
     virtual void OnReceivedData(const char* data,
                                 int data_length,
                                 int encoded_data_length) = 0;
@@ -178,8 +176,10 @@ class ResourceLoaderBridge {
     virtual void OnCompletedRequest(
         int error_code,
         bool was_ignored_by_handler,
+        bool stale_copy_in_cache,
         const std::string& security_info,
-        const base::TimeTicks& completion_time) = 0;
+        const base::TimeTicks& completion_time,
+        int64 total_transfer_size) = 0;
 
    protected:
     virtual ~Peer() {}