OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browsing_data/cookies_tree_model.h" | 5 #include "chrome/browser/browsing_data/cookies_tree_model.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h" | 16 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h" |
17 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" | 17 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" |
18 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h" | 18 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h" |
19 #include "chrome/browser/content_settings/cookie_settings.h" | 19 #include "chrome/browser/content_settings/cookie_settings.h" |
| 20 #include "chrome/grit/generated_resources.h" |
20 #include "content/public/common/url_constants.h" | 21 #include "content/public/common/url_constants.h" |
21 #include "grit/generated_resources.h" | |
22 #include "grit/theme_resources.h" | 22 #include "grit/theme_resources.h" |
23 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 23 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
24 #include "net/cookies/canonical_cookie.h" | 24 #include "net/cookies/canonical_cookie.h" |
25 #include "net/url_request/url_request_context.h" | 25 #include "net/url_request/url_request_context.h" |
26 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
27 #include "ui/base/resource/resource_bundle.h" | 27 #include "ui/base/resource/resource_bundle.h" |
28 #include "ui/gfx/image/image_skia.h" | 28 #include "ui/gfx/image/image_skia.h" |
29 #include "ui/resources/grit/ui_resources.h" | 29 #include "ui/resources/grit/ui_resources.h" |
30 | 30 |
31 #if defined(ENABLE_EXTENSIONS) | 31 #if defined(ENABLE_EXTENSIONS) |
(...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 | 1436 |
1437 void CookiesTreeModel::NotifyObserverEndBatch() { | 1437 void CookiesTreeModel::NotifyObserverEndBatch() { |
1438 // Only notify the observers if this is the outermost call to EndBatch() if | 1438 // Only notify the observers if this is the outermost call to EndBatch() if |
1439 // called in a nested manner. | 1439 // called in a nested manner. |
1440 if (--batch_update_ == 0) { | 1440 if (--batch_update_ == 0) { |
1441 FOR_EACH_OBSERVER(Observer, | 1441 FOR_EACH_OBSERVER(Observer, |
1442 cookies_observer_list_, | 1442 cookies_observer_list_, |
1443 TreeModelEndBatch(this)); | 1443 TreeModelEndBatch(this)); |
1444 } | 1444 } |
1445 } | 1445 } |
OLD | NEW |