OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cookies_tree_model.h" | 5 #include "chrome/browser/cookies_tree_model.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
12 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/linked_ptr.h" | 14 #include "base/linked_ptr.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
17 #include "chrome/browser/extensions/extensions_service.h" | 17 #include "chrome/browser/extensions/extension_service.h" |
18 #include "chrome/browser/in_process_webkit/webkit_context.h" | 18 #include "chrome/browser/in_process_webkit/webkit_context.h" |
19 #include "grit/app_resources.h" | 19 #include "grit/app_resources.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
21 #include "grit/theme_resources.h" | 21 #include "grit/theme_resources.h" |
22 #include "net/base/cookie_monster.h" | 22 #include "net/base/cookie_monster.h" |
23 #include "net/base/registry_controlled_domain.h" | 23 #include "net/base/registry_controlled_domain.h" |
24 #include "net/url_request/url_request_context.h" | 24 #include "net/url_request/url_request_context.h" |
25 #include "third_party/skia/include/core/SkBitmap.h" | 25 #include "third_party/skia/include/core/SkBitmap.h" |
26 | 26 |
27 static const char kFileOriginNodeName[] = "file://"; | 27 static const char kFileOriginNodeName[] = "file://"; |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 | 858 |
859 void CookiesTreeModel::NotifyObserverEndBatch() { | 859 void CookiesTreeModel::NotifyObserverEndBatch() { |
860 // Only notify the observers if this is the outermost call to EndBatch() if | 860 // Only notify the observers if this is the outermost call to EndBatch() if |
861 // called in a nested manner. | 861 // called in a nested manner. |
862 if (--batch_update_ == 0) { | 862 if (--batch_update_ == 0) { |
863 FOR_EACH_OBSERVER(Observer, | 863 FOR_EACH_OBSERVER(Observer, |
864 cookies_observer_list_, | 864 cookies_observer_list_, |
865 TreeModelEndBatch(this)); | 865 TreeModelEndBatch(this)); |
866 } | 866 } |
867 } | 867 } |
OLD | NEW |