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 "app/table_model_observer.h" | |
14 #include "app/tree_node_model.h" | |
15 #include "base/callback.h" | 13 #include "base/callback.h" |
16 #include "base/i18n/rtl.h" | 14 #include "base/i18n/rtl.h" |
17 #include "base/linked_ptr.h" | 15 #include "base/linked_ptr.h" |
18 #include "base/string_util.h" | 16 #include "base/string_util.h" |
19 #include "chrome/browser/extensions/extensions_service.h" | 17 #include "chrome/browser/extensions/extensions_service.h" |
20 #include "chrome/browser/in_process_webkit/webkit_context.h" | 18 #include "chrome/browser/in_process_webkit/webkit_context.h" |
21 #include "grit/app_resources.h" | 19 #include "grit/app_resources.h" |
22 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
23 #include "grit/theme_resources.h" | 21 #include "grit/theme_resources.h" |
24 #include "net/base/cookie_monster.h" | 22 #include "net/base/cookie_monster.h" |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 | 581 |
584 void CookiesTreeModel::NotifyObserverEndBatch() { | 582 void CookiesTreeModel::NotifyObserverEndBatch() { |
585 // Only notify the observers if this is the outermost call to EndBatch() if | 583 // Only notify the observers if this is the outermost call to EndBatch() if |
586 // called in a nested manner. | 584 // called in a nested manner. |
587 if (--batch_update_ == 0) { | 585 if (--batch_update_ == 0) { |
588 FOR_EACH_OBSERVER(Observer, | 586 FOR_EACH_OBSERVER(Observer, |
589 cookies_observer_list_, | 587 cookies_observer_list_, |
590 TreeModelEndBatch(this)); | 588 TreeModelEndBatch(this)); |
591 } | 589 } |
592 } | 590 } |
OLD | NEW |