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

Side by Side Diff: net/base/upload_data.h

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 NET_BASE_UPLOAD_DATA_H_ 5 #ifndef NET_BASE_UPLOAD_DATA_H_
6 #define NET_BASE_UPLOAD_DATA_H_ 6 #define NET_BASE_UPLOAD_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 elements_.swap(*elements); 95 elements_.swap(*elements);
96 } 96 }
97 97
98 // Identifies a particular upload instance, which is used by the cache to 98 // Identifies a particular upload instance, which is used by the cache to
99 // formulate a cache key. This value should be unique across browser 99 // formulate a cache key. This value should be unique across browser
100 // sessions. A value of 0 is used to indicate an unspecified identifier. 100 // sessions. A value of 0 is used to indicate an unspecified identifier.
101 void set_identifier(int64 id) { identifier_ = id; } 101 void set_identifier(int64 id) { identifier_ = id; }
102 int64 identifier() const { return identifier_; } 102 int64 identifier() const { return identifier_; }
103 103
104 private: 104 private:
105 friend class base::RefCounted<UploadData>;
106
107 ~UploadData() {}
108
105 std::vector<Element> elements_; 109 std::vector<Element> elements_;
106 int64 identifier_; 110 int64 identifier_;
107 }; 111 };
108 112
109 } // namespace net 113 } // namespace net
110 114
111 #endif // NET_BASE_UPLOAD_DATA_H_ 115 #endif // NET_BASE_UPLOAD_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698