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 #include "chrome/browser/mock_browsing_data_cookie_helper.h" | 5 #include "chrome/browser/mock_browsing_data_cookie_helper.h" |
6 | 6 |
| 7 #include "base/logging.h" |
| 8 |
7 MockBrowsingDataCookieHelper::MockBrowsingDataCookieHelper(Profile* profile) | 9 MockBrowsingDataCookieHelper::MockBrowsingDataCookieHelper(Profile* profile) |
8 : BrowsingDataCookieHelper(profile), | 10 : BrowsingDataCookieHelper(profile), |
9 profile_(profile) { | 11 profile_(profile) { |
10 } | 12 } |
11 | 13 |
12 MockBrowsingDataCookieHelper::~MockBrowsingDataCookieHelper() { | 14 MockBrowsingDataCookieHelper::~MockBrowsingDataCookieHelper() { |
13 } | 15 } |
14 | 16 |
15 void MockBrowsingDataCookieHelper::StartFetching( | 17 void MockBrowsingDataCookieHelper::StartFetching( |
16 const net::CookieMonster::GetCookieListCallback &callback) { | 18 const net::CookieMonster::GetCookieListCallback &callback) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 i->second = true; | 62 i->second = true; |
61 } | 63 } |
62 | 64 |
63 bool MockBrowsingDataCookieHelper::AllDeleted() { | 65 bool MockBrowsingDataCookieHelper::AllDeleted() { |
64 for (std::map<const std::string, bool>::const_iterator i = cookies_.begin(); | 66 for (std::map<const std::string, bool>::const_iterator i = cookies_.begin(); |
65 i != cookies_.end(); ++i) | 67 i != cookies_.end(); ++i) |
66 if (i->second) | 68 if (i->second) |
67 return false; | 69 return false; |
68 return true; | 70 return true; |
69 } | 71 } |
OLD | NEW |