| 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_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_CONTAINER_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_CONTAINER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "components/content_settings/core/browser/local_shared_objects_counter.
h" | 10 #include "components/content_settings/core/browser/local_shared_objects_counter.
h" |
| 11 | 11 |
| 12 class CannedBrowsingDataAppCacheHelper; | 12 class CannedBrowsingDataAppCacheHelper; |
| 13 class CannedBrowsingDataChannelIDHelper; | 13 class CannedBrowsingDataChannelIDHelper; |
| 14 class CannedBrowsingDataCookieHelper; | 14 class CannedBrowsingDataCookieHelper; |
| 15 class CannedBrowsingDataDatabaseHelper; | 15 class CannedBrowsingDataDatabaseHelper; |
| 16 class CannedBrowsingDataFileSystemHelper; | 16 class CannedBrowsingDataFileSystemHelper; |
| 17 class CannedBrowsingDataIndexedDBHelper; | 17 class CannedBrowsingDataIndexedDBHelper; |
| 18 class CannedBrowsingDataLocalStorageHelper; | 18 class CannedBrowsingDataLocalStorageHelper; |
| 19 class CannedBrowsingDataServiceWorkerHelper; | 19 class CannedBrowsingDataServiceWorkerHelper; |
| 20 class CookiesTreeModel; | 20 class CookiesTreeModel; |
| 21 class Profile; | 21 class Profile; |
| 22 | 22 |
| 23 class LocalSharedObjectsContainer : public LocalSharedObjectsCounter { | 23 class LocalSharedObjectsContainer : public LocalSharedObjectsCounter { |
| 24 public: | 24 public: |
| 25 explicit LocalSharedObjectsContainer(Profile* profile); | 25 explicit LocalSharedObjectsContainer(Profile* profile); |
| 26 virtual ~LocalSharedObjectsContainer(); | 26 virtual ~LocalSharedObjectsContainer(); |
| 27 | 27 |
| 28 // LocalSharedObjectsCounter: | 28 // LocalSharedObjectsCounter: |
| 29 virtual size_t GetObjectCount() const OVERRIDE; | 29 virtual size_t GetObjectCount() const override; |
| 30 virtual size_t GetObjectCountForDomain(const GURL& url) const OVERRIDE; | 30 virtual size_t GetObjectCountForDomain(const GURL& url) const override; |
| 31 | 31 |
| 32 // Empties the container. | 32 // Empties the container. |
| 33 void Reset(); | 33 void Reset(); |
| 34 | 34 |
| 35 // Creates a new CookiesTreeModel for all objects in the container, | 35 // Creates a new CookiesTreeModel for all objects in the container, |
| 36 // copying each of them. | 36 // copying each of them. |
| 37 scoped_ptr<CookiesTreeModel> CreateCookiesTreeModel() const; | 37 scoped_ptr<CookiesTreeModel> CreateCookiesTreeModel() const; |
| 38 | 38 |
| 39 CannedBrowsingDataAppCacheHelper* appcaches() const { | 39 CannedBrowsingDataAppCacheHelper* appcaches() const { |
| 40 return appcaches_.get(); | 40 return appcaches_.get(); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 70 scoped_refptr<CannedBrowsingDataFileSystemHelper> file_systems_; | 70 scoped_refptr<CannedBrowsingDataFileSystemHelper> file_systems_; |
| 71 scoped_refptr<CannedBrowsingDataIndexedDBHelper> indexed_dbs_; | 71 scoped_refptr<CannedBrowsingDataIndexedDBHelper> indexed_dbs_; |
| 72 scoped_refptr<CannedBrowsingDataLocalStorageHelper> local_storages_; | 72 scoped_refptr<CannedBrowsingDataLocalStorageHelper> local_storages_; |
| 73 scoped_refptr<CannedBrowsingDataServiceWorkerHelper> service_workers_; | 73 scoped_refptr<CannedBrowsingDataServiceWorkerHelper> service_workers_; |
| 74 scoped_refptr<CannedBrowsingDataLocalStorageHelper> session_storages_; | 74 scoped_refptr<CannedBrowsingDataLocalStorageHelper> session_storages_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(LocalSharedObjectsContainer); | 76 DISALLOW_COPY_AND_ASSIGN(LocalSharedObjectsContainer); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 #endif // CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_CONTAINER_H_ | 79 #endif // CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_CONTAINER_H_ |
| OLD | NEW |