| 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 #ifndef CHROME_BROWSER_COOKIES_TREE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_COOKIES_TREE_MODEL_H_ |
| 6 #define CHROME_BROWSER_COOKIES_TREE_MODEL_H_ | 6 #define CHROME_BROWSER_COOKIES_TREE_MODEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // TODO(viettrungluu): This header file #includes far too much and has too much | 9 // TODO(viettrungluu): This header file #includes far too much and has too much |
| 10 // inline code (which shouldn't be inline). | 10 // inline code (which shouldn't be inline). |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 BrowsingDataIndexedDBHelper* indexed_db_helper, | 637 BrowsingDataIndexedDBHelper* indexed_db_helper, |
| 638 BrowsingDataFileSystemHelper* file_system_helper, | 638 BrowsingDataFileSystemHelper* file_system_helper, |
| 639 BrowsingDataQuotaHelper* quota_helper, | 639 BrowsingDataQuotaHelper* quota_helper, |
| 640 BrowsingDataServerBoundCertHelper* server_bound_cert_helper, | 640 BrowsingDataServerBoundCertHelper* server_bound_cert_helper, |
| 641 bool use_cookie_source); | 641 bool use_cookie_source); |
| 642 virtual ~CookiesTreeModel(); | 642 virtual ~CookiesTreeModel(); |
| 643 | 643 |
| 644 // ui::TreeModel methods: | 644 // ui::TreeModel methods: |
| 645 // Returns the set of icons for the nodes in the tree. You only need override | 645 // Returns the set of icons for the nodes in the tree. You only need override |
| 646 // this if you don't want to use the default folder icons. | 646 // this if you don't want to use the default folder icons. |
| 647 virtual void GetIcons(std::vector<SkBitmap>* icons) OVERRIDE; | 647 virtual void GetIcons(std::vector<gfx::ImageSkia>* icons) OVERRIDE; |
| 648 | 648 |
| 649 // Returns the index of the icon to use for |node|. Return -1 to use the | 649 // Returns the index of the icon to use for |node|. Return -1 to use the |
| 650 // default icon. The index is relative to the list of icons returned from | 650 // default icon. The index is relative to the list of icons returned from |
| 651 // GetIcons. | 651 // GetIcons. |
| 652 virtual int GetIconIndex(ui::TreeModelNode* node) OVERRIDE; | 652 virtual int GetIconIndex(ui::TreeModelNode* node) OVERRIDE; |
| 653 | 653 |
| 654 // CookiesTreeModel methods: | 654 // CookiesTreeModel methods: |
| 655 void DeleteAllStoredObjects(); | 655 void DeleteAllStoredObjects(); |
| 656 void DeleteCookieNode(CookieTreeNode* cookie_node); | 656 void DeleteCookieNode(CookieTreeNode* cookie_node); |
| 657 | 657 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 friend class CookieTreeSessionStorageNode; | 754 friend class CookieTreeSessionStorageNode; |
| 755 friend class CookieTreeIndexedDBNode; | 755 friend class CookieTreeIndexedDBNode; |
| 756 friend class CookieTreeFileSystemNode; | 756 friend class CookieTreeFileSystemNode; |
| 757 friend class CookieTreeQuotaNode; | 757 friend class CookieTreeQuotaNode; |
| 758 friend class CookieTreeServerBoundCertNode; | 758 friend class CookieTreeServerBoundCertNode; |
| 759 | 759 |
| 760 DISALLOW_COPY_AND_ASSIGN(CookiesTreeModel); | 760 DISALLOW_COPY_AND_ASSIGN(CookiesTreeModel); |
| 761 }; | 761 }; |
| 762 | 762 |
| 763 #endif // CHROME_BROWSER_COOKIES_TREE_MODEL_H_ | 763 #endif // CHROME_BROWSER_COOKIES_TREE_MODEL_H_ |
| OLD | NEW |