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

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

Issue 2851: An early optimization in std::pair<> in Visual Studio 2008 Service Pack 1 mak... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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
« no previous file with comments | « no previous file | no next file » | 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) 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 // Brought to you by the letter D and the number 2. 5 // Brought to you by the letter D and the number 2.
6 6
7 #ifndef NET_BASE_COOKIE_MONSTER_H_ 7 #ifndef NET_BASE_COOKIE_MONSTER_H_
8 #define NET_BASE_COOKIE_MONSTER_H_ 8 #define NET_BASE_COOKIE_MONSTER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 : name_(name), 242 : name_(name),
243 value_(value), 243 value_(value),
244 path_(path), 244 path_(path),
245 creation_date_(creation), 245 creation_date_(creation),
246 expiry_date_(expires), 246 expiry_date_(expires),
247 has_expires_(has_expires), 247 has_expires_(has_expires),
248 secure_(secure), 248 secure_(secure),
249 httponly_(httponly) { 249 httponly_(httponly) {
250 } 250 }
251 251
252 #if defined(_MSC_VER) && _CPPLIB_VER == 505
253 // On Visual Studio 2008 Service Pack 1, std::pair<A, B> are optimized in a
254 // way that requires the availability of a default constructor.
255 CanonicalCookie() { }
256 #endif
257
252 // Supports the default copy constructor. 258 // Supports the default copy constructor.
253 259
254 const std::string& Name() const { return name_; } 260 const std::string& Name() const { return name_; }
255 const std::string& Value() const { return value_; } 261 const std::string& Value() const { return value_; }
256 const std::string& Path() const { return path_; } 262 const std::string& Path() const { return path_; }
257 const Time& CreationDate() const { return creation_date_; } 263 const Time& CreationDate() const { return creation_date_; }
258 bool DoesExpire() const { return has_expires_; } 264 bool DoesExpire() const { return has_expires_; }
259 bool IsPersistent() const { return DoesExpire(); } 265 bool IsPersistent() const { return DoesExpire(); }
260 const Time& ExpiryDate() const { return expiry_date_; } 266 const Time& ExpiryDate() const { return expiry_date_; }
261 bool IsSecure() const { return secure_; } 267 bool IsSecure() const { return secure_; }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 PersistentCookieStore() { } 308 PersistentCookieStore() { }
303 309
304 private: 310 private:
305 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); 311 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore);
306 }; 312 };
307 313
308 } // namespace net 314 } // namespace net
309 315
310 #endif // NET_BASE_COOKIE_MONSTER_H_ 316 #endif // NET_BASE_COOKIE_MONSTER_H_
311 317
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698