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

Side by Side Diff: content/browser/streams/stream.h

Issue 12615004: Fix heapcheck errors (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix the comment Created 7 years, 9 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 | content/browser/streams/stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_STREAMS_STREAM_H_ 5 #ifndef CONTENT_BROWSER_STREAMS_STREAM_H_
6 #define CONTENT_BROWSER_STREAMS_STREAM_H_ 6 #define CONTENT_BROWSER_STREAMS_STREAM_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h"
10 #include "content/browser/download/byte_stream.h" 11 #include "content/browser/download/byte_stream.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
13 14
14 namespace net { 15 namespace net {
15 class IOBuffer; 16 class IOBuffer;
16 } 17 }
17 18
18 namespace content { 19 namespace content {
19 20
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 scoped_refptr<net::IOBuffer> data_; 85 scoped_refptr<net::IOBuffer> data_;
85 size_t data_length_; 86 size_t data_length_;
86 87
87 scoped_ptr<ByteStreamWriter> writer_; 88 scoped_ptr<ByteStreamWriter> writer_;
88 scoped_ptr<ByteStreamReader> reader_; 89 scoped_ptr<ByteStreamReader> reader_;
89 90
90 StreamRegistry* registry_; 91 StreamRegistry* registry_;
91 StreamReadObserver* read_observer_; 92 StreamReadObserver* read_observer_;
92 StreamWriteObserver* write_observer_; 93 StreamWriteObserver* write_observer_;
93 94
95 base::WeakPtrFactory<Stream> weak_ptr_factory_;
94 DISALLOW_COPY_AND_ASSIGN(Stream); 96 DISALLOW_COPY_AND_ASSIGN(Stream);
95 }; 97 };
96 98
97 } // namespace content 99 } // namespace content
98 100
99 #endif // CONTENT_BROWSER_STREAMS_STREAM_H_ 101 #endif // CONTENT_BROWSER_STREAMS_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/streams/stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698