| 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 #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). |
| 11 | 11 |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 17 #include "base/string16.h" | 17 #include "base/string16.h" |
| 18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
| 19 #include "chrome/browser/browsing_data_appcache_helper.h" | 19 #include "chrome/browser/browsing_data_appcache_helper.h" |
| 20 #include "chrome/browser/browsing_data_database_helper.h" | 20 #include "chrome/browser/browsing_data_database_helper.h" |
| 21 #include "chrome/browser/browsing_data_indexed_db_helper.h" | 21 #include "chrome/browser/browsing_data_indexed_db_helper.h" |
| 22 #include "chrome/browser/browsing_data_local_storage_helper.h" | 22 #include "chrome/browser/browsing_data_local_storage_helper.h" |
| 23 #include "chrome/common/content_settings.h" |
| 23 #include "net/base/cookie_monster.h" | 24 #include "net/base/cookie_monster.h" |
| 24 #include "ui/base/models/tree_node_model.h" | 25 #include "ui/base/models/tree_node_model.h" |
| 25 | 26 |
| 26 class CookiesTreeModel; | 27 class CookiesTreeModel; |
| 27 class CookieTreeAppCacheNode; | 28 class CookieTreeAppCacheNode; |
| 28 class CookieTreeAppCachesNode; | 29 class CookieTreeAppCachesNode; |
| 29 class CookieTreeCookieNode; | 30 class CookieTreeCookieNode; |
| 30 class CookieTreeCookiesNode; | 31 class CookieTreeCookiesNode; |
| 31 class CookieTreeDatabaseNode; | 32 class CookieTreeDatabaseNode; |
| 32 class CookieTreeDatabasesNode; | 33 class CookieTreeDatabasesNode; |
| 33 class CookieTreeLocalStorageNode; | 34 class CookieTreeLocalStorageNode; |
| 34 class CookieTreeLocalStoragesNode; | 35 class CookieTreeLocalStoragesNode; |
| 35 class CookieTreeSessionStorageNode; | 36 class CookieTreeSessionStorageNode; |
| 36 class CookieTreeSessionStoragesNode; | 37 class CookieTreeSessionStoragesNode; |
| 37 class CookieTreeIndexedDBNode; | 38 class CookieTreeIndexedDBNode; |
| 38 class CookieTreeIndexedDBsNode; | 39 class CookieTreeIndexedDBsNode; |
| 39 class CookieTreeOriginNode; | 40 class CookieTreeOriginNode; |
| 41 class HostContentSettingsMap; |
| 40 | 42 |
| 41 // CookieTreeNode ------------------------------------------------------------- | 43 // CookieTreeNode ------------------------------------------------------------- |
| 42 // The base node type in the Cookies, Databases, and Local Storage options | 44 // The base node type in the Cookies, Databases, and Local Storage options |
| 43 // view, from which all other types are derived. Specialized from TreeNode in | 45 // view, from which all other types are derived. Specialized from TreeNode in |
| 44 // that it has a notion of deleting objects stored in the profile, and being | 46 // that it has a notion of deleting objects stored in the profile, and being |
| 45 // able to have its children do the same. | 47 // able to have its children do the same. |
| 46 class CookieTreeNode : public ui::TreeNode<CookieTreeNode> { | 48 class CookieTreeNode : public ui::TreeNode<CookieTreeNode> { |
| 47 public: | 49 public: |
| 48 // Used to pull out information for the InfoView (the details display below | 50 // Used to pull out information for the InfoView (the details display below |
| 49 // the tree control.) | 51 // the tree control.) |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 friend class CookieTreeAppCacheNode; | 565 friend class CookieTreeAppCacheNode; |
| 564 friend class CookieTreeCookieNode; | 566 friend class CookieTreeCookieNode; |
| 565 friend class CookieTreeDatabaseNode; | 567 friend class CookieTreeDatabaseNode; |
| 566 friend class CookieTreeLocalStorageNode; | 568 friend class CookieTreeLocalStorageNode; |
| 567 friend class CookieTreeIndexedDBNode; | 569 friend class CookieTreeIndexedDBNode; |
| 568 | 570 |
| 569 DISALLOW_COPY_AND_ASSIGN(CookiesTreeModel); | 571 DISALLOW_COPY_AND_ASSIGN(CookiesTreeModel); |
| 570 }; | 572 }; |
| 571 | 573 |
| 572 #endif // CHROME_BROWSER_COOKIES_TREE_MODEL_H_ | 574 #endif // CHROME_BROWSER_COOKIES_TREE_MODEL_H_ |
| OLD | NEW |