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

Side by Side Diff: Source/core/fetch/ResourceLoader.h

Issue 23632004: Add encoded_data_length argument to didDownloadData delegate method (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | Source/core/fetch/ResourceLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void didChangePriority(ResourceLoadPriority); 66 void didChangePriority(ResourceLoadPriority);
67 67
68 // WebURLLoaderClient 68 // WebURLLoaderClient
69 virtual void willSendRequest(WebKit::WebURLLoader*, WebKit::WebURLRequest&, const WebKit::WebURLResponse& redirectResponse) OVERRIDE; 69 virtual void willSendRequest(WebKit::WebURLLoader*, WebKit::WebURLRequest&, const WebKit::WebURLResponse& redirectResponse) OVERRIDE;
70 virtual void didSendData(WebKit::WebURLLoader*, unsigned long long bytesSent , unsigned long long totalBytesToBeSent) OVERRIDE; 70 virtual void didSendData(WebKit::WebURLLoader*, unsigned long long bytesSent , unsigned long long totalBytesToBeSent) OVERRIDE;
71 virtual void didReceiveResponse(WebKit::WebURLLoader*, const WebKit::WebURLR esponse&) OVERRIDE; 71 virtual void didReceiveResponse(WebKit::WebURLLoader*, const WebKit::WebURLR esponse&) OVERRIDE;
72 virtual void didReceiveData(WebKit::WebURLLoader*, const char*, int, int enc odedDataLength) OVERRIDE; 72 virtual void didReceiveData(WebKit::WebURLLoader*, const char*, int, int enc odedDataLength) OVERRIDE;
73 virtual void didReceiveCachedMetadata(WebKit::WebURLLoader*, const char* dat a, int length) OVERRIDE; 73 virtual void didReceiveCachedMetadata(WebKit::WebURLLoader*, const char* dat a, int length) OVERRIDE;
74 virtual void didFinishLoading(WebKit::WebURLLoader*, double finishTime) OVER RIDE; 74 virtual void didFinishLoading(WebKit::WebURLLoader*, double finishTime) OVER RIDE;
75 virtual void didFail(WebKit::WebURLLoader*, const WebKit::WebURLError&) OVER RIDE; 75 virtual void didFail(WebKit::WebURLLoader*, const WebKit::WebURLError&) OVER RIDE;
76 virtual void didDownloadData(WebKit::WebURLLoader*, int) OVERRIDE; 76 virtual void didDownloadData(WebKit::WebURLLoader*, int, int) OVERRIDE;
77 77
78 const KURL& url() const { return m_request.url(); } 78 const KURL& url() const { return m_request.url(); }
79 bool shouldSendResourceLoadCallbacks() const { return m_options.sendLoadCall backs == SendCallbacks; } 79 bool shouldSendResourceLoadCallbacks() const { return m_options.sendLoadCall backs == SendCallbacks; }
80 bool shouldSniffContent() const { return m_options.sniffContent == SniffCont ent; } 80 bool shouldSniffContent() const { return m_options.sniffContent == SniffCont ent; }
81 bool isLoadedBy(ResourceLoaderHost*) const; 81 bool isLoadedBy(ResourceLoaderHost*) const;
82 82
83 bool reachedTerminalState() const { return m_state == Terminated; } 83 bool reachedTerminalState() const { return m_state == Terminated; }
84 const ResourceRequest& request() const { return m_request; } 84 const ResourceRequest& request() const { return m_request; }
85 85
86 private: 86 private:
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Used for sanity checking to make sure we don't experience illegal state 134 // Used for sanity checking to make sure we don't experience illegal state
135 // transitions. 135 // transitions.
136 ConnectionState m_connectionState; 136 ConnectionState m_connectionState;
137 137
138 OwnPtr<RequestCountTracker> m_requestCountTracker; 138 OwnPtr<RequestCountTracker> m_requestCountTracker;
139 }; 139 };
140 140
141 } 141 }
142 142
143 #endif 143 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/fetch/ResourceLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698