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

Unified Diff: net/base/io_buffer.h

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: net/base/io_buffer.h
===================================================================
--- net/base/io_buffer.h (revision 9942)
+++ net/base/io_buffer.h (working copy)
@@ -5,7 +5,6 @@
#ifndef NET_BASE_IO_BUFFER_H_
#define NET_BASE_IO_BUFFER_H_
-#include "base/logging.h"
#include "base/ref_counted.h"
namespace net {
@@ -15,10 +14,7 @@
class IOBuffer : public base::RefCountedThreadSafe<IOBuffer> {
public:
IOBuffer() : data_(NULL) {}
- explicit IOBuffer(int buffer_size) {
- DCHECK(buffer_size);
- data_ = new char[buffer_size];
- }
+ explicit IOBuffer(int buffer_size);
explicit IOBuffer(char* data) : data_(data) {}
virtual ~IOBuffer() {
delete[] data_;

Powered by Google App Engine
This is Rietveld 408576698