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

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

Issue 618583002: Correct data size argument type in resource loading path to unsigned (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add static_cast to RELEASE_ASSERT in AssociatedURLLoader::ClientAdapter::didReceiveData Created 6 years, 2 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 if (m_client) 62 if (m_client)
63 m_client->didSendData(bytesSent, totalBytesToBeSent); 63 m_client->didSendData(bytesSent, totalBytesToBeSent);
64 } 64 }
65 65
66 void didReceiveResponse(unsigned long identifier, const ResourceResponse& re sponse) 66 void didReceiveResponse(unsigned long identifier, const ResourceResponse& re sponse)
67 { 67 {
68 if (m_client) 68 if (m_client)
69 m_client->didReceiveResponse(identifier, response); 69 m_client->didReceiveResponse(identifier, response);
70 } 70 }
71 71
72 void didReceiveData(const char* data, int dataLength) 72 void didReceiveData(const char* data, unsigned dataLength)
73 { 73 {
74 if (m_client) 74 if (m_client)
75 m_client->didReceiveData(data, dataLength); 75 m_client->didReceiveData(data, dataLength);
76 } 76 }
77 77
78 void didReceiveCachedMetadata(const char* data, int dataLength) 78 void didReceiveCachedMetadata(const char* data, int dataLength)
79 { 79 {
80 if (m_client) 80 if (m_client)
81 m_client->didReceiveCachedMetadata(data, dataLength); 81 m_client->didReceiveCachedMetadata(data, dataLength);
82 } 82 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 { 131 {
132 } 132 }
133 133
134 ThreadableLoaderClient* m_client; 134 ThreadableLoaderClient* m_client;
135 bool m_done; 135 bool m_done;
136 }; 136 };
137 137
138 } // namespace blink 138 } // namespace blink
139 139
140 #endif // ThreadableLoaderClientWrapper_h 140 #endif // ThreadableLoaderClientWrapper_h
OLDNEW
« no previous file with comments | « Source/core/loader/ThreadableLoaderClient.h ('k') | Source/core/loader/WorkerLoaderClientBridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698