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

Side by Side Diff: Source/core/platform/network/ResourceResponse.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 ExtraData* extraData() const { return m_extraData.get(); } 180 ExtraData* extraData() const { return m_extraData.get(); }
181 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; } 181 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; }
182 182
183 // The ResourceResponse subclass may "shadow" this method to provide platfor m-specific memory usage information 183 // The ResourceResponse subclass may "shadow" this method to provide platfor m-specific memory usage information
184 unsigned memoryUsage() const 184 unsigned memoryUsage() const
185 { 185 {
186 // average size, mostly due to URL and Header Map strings 186 // average size, mostly due to URL and Header Map strings
187 return 1280; 187 return 1280;
188 } 188 }
189 189
190 void reportMemoryUsage(MemoryObjectInfo*) const;
191
192 static bool compare(const ResourceResponse&, const ResourceResponse&); 190 static bool compare(const ResourceResponse&, const ResourceResponse&);
193 191
194 private: 192 private:
195 void parseCacheControlDirectives() const; 193 void parseCacheControlDirectives() const;
196 void updateHeaderParsedState(const AtomicString& name); 194 void updateHeaderParsedState(const AtomicString& name);
197 195
198 KURL m_url; 196 KURL m_url;
199 String m_mimeType; 197 String m_mimeType;
200 long long m_expectedContentLength; 198 long long m_expectedContentLength;
201 String m_textEncodingName; 199 String m_textEncodingName;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 bool m_wasFetchedViaProxy; 303 bool m_wasFetchedViaProxy;
306 double m_responseTime; 304 double m_responseTime;
307 String m_remoteIPAddress; 305 String m_remoteIPAddress;
308 unsigned short m_remotePort; 306 unsigned short m_remotePort;
309 String m_downloadFilePath; 307 String m_downloadFilePath;
310 }; 308 };
311 309
312 } // namespace WebCore 310 } // namespace WebCore
313 311
314 #endif // ResourceResponse_h 312 #endif // ResourceResponse_h
OLDNEW
« no previous file with comments | « Source/core/platform/network/ResourceRequest.cpp ('k') | Source/core/platform/network/ResourceResponse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698