| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 // Initialize the above variables; should only be called from | 462 // Initialize the above variables; should only be called from |
| 463 // the constructor. | 463 // the constructor. |
| 464 void InitializeHistograms(); | 464 void InitializeHistograms(); |
| 465 | 465 |
| 466 // The resolution of our time isn't enough, so we do something | 466 // The resolution of our time isn't enough, so we do something |
| 467 // ugly and increment when we've seen the same time twice. | 467 // ugly and increment when we've seen the same time twice. |
| 468 base::Time CurrentTime(); | 468 base::Time CurrentTime(); |
| 469 | 469 |
| 470 // Histogram variables; see CookieMonster::InitializeHistograms() in | 470 // Histogram variables; see CookieMonster::InitializeHistograms() in |
| 471 // cookie_monster.cc for details. | 471 // cookie_monster.cc for details. |
| 472 scoped_refptr<base::Histogram> histogram_expiration_duration_minutes_; | 472 base::Histogram* histogram_expiration_duration_minutes_; |
| 473 scoped_refptr<base::Histogram> histogram_between_access_interval_minutes_; | 473 base::Histogram* histogram_between_access_interval_minutes_; |
| 474 scoped_refptr<base::Histogram> histogram_evicted_last_access_minutes_; | 474 base::Histogram* histogram_evicted_last_access_minutes_; |
| 475 scoped_refptr<base::Histogram> histogram_count_; | 475 base::Histogram* histogram_count_; |
| 476 scoped_refptr<base::Histogram> histogram_domain_count_; | 476 base::Histogram* histogram_domain_count_; |
| 477 scoped_refptr<base::Histogram> histogram_etldp1_count_; | 477 base::Histogram* histogram_etldp1_count_; |
| 478 scoped_refptr<base::Histogram> histogram_domain_per_etldp1_count_; | 478 base::Histogram* histogram_domain_per_etldp1_count_; |
| 479 scoped_refptr<base::Histogram> histogram_number_duplicate_db_cookies_; | 479 base::Histogram* histogram_number_duplicate_db_cookies_; |
| 480 scoped_refptr<base::Histogram> histogram_cookie_deletion_cause_; | 480 base::Histogram* histogram_cookie_deletion_cause_; |
| 481 scoped_refptr<base::Histogram> histogram_time_get_; | 481 base::Histogram* histogram_time_get_; |
| 482 scoped_refptr<base::Histogram> histogram_time_load_; | 482 base::Histogram* histogram_time_load_; |
| 483 | 483 |
| 484 CookieMap cookies_; | 484 CookieMap cookies_; |
| 485 | 485 |
| 486 // Indicates whether the cookie store has been initialized. This happens | 486 // Indicates whether the cookie store has been initialized. This happens |
| 487 // lazily in InitStoreIfNecessary(). | 487 // lazily in InitStoreIfNecessary(). |
| 488 bool initialized_; | 488 bool initialized_; |
| 489 | 489 |
| 490 // Indicates whether this cookie monster uses the new effective domain | 490 // Indicates whether this cookie monster uses the new effective domain |
| 491 // key scheme or not. | 491 // key scheme or not. |
| 492 ExpiryAndKeyScheme expiry_and_key_scheme_; | 492 ExpiryAndKeyScheme expiry_and_key_scheme_; |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 private: | 792 private: |
| 793 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 793 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
| 794 }; | 794 }; |
| 795 | 795 |
| 796 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { | 796 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { |
| 797 }; | 797 }; |
| 798 | 798 |
| 799 } // namespace net | 799 } // namespace net |
| 800 | 800 |
| 801 #endif // NET_BASE_COOKIE_MONSTER_H_ | 801 #endif // NET_BASE_COOKIE_MONSTER_H_ |
| OLD | NEW |