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 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 size_t GetObjectCount() const; | 31 size_t GetObjectCount() const; |
32 | 32 |
33 // Returns the number of objects for the given |origin|. | 33 // Returns the number of objects for the given |origin|. |
34 size_t GetObjectCountForDomain(const GURL& url) const; | 34 size_t GetObjectCountForDomain(const GURL& url) const; |
35 | 35 |
36 // Creates a new CookiesTreeModel for all objects in the container, | 36 // Creates a new CookiesTreeModel for all objects in the container, |
37 // copying each of them. | 37 // copying each of them. |
38 scoped_ptr<CookiesTreeModel> CreateCookiesTreeModel() const; | 38 scoped_ptr<CookiesTreeModel> CreateCookiesTreeModel() const; |
39 | 39 |
40 CannedBrowsingDataAppCacheHelper* appcaches() const { | 40 CannedBrowsingDataAppCacheHelper* appcaches() const { |
41 return appcaches_; | 41 return appcaches_.get(); |
42 } | 42 } |
43 CannedBrowsingDataCookieHelper* cookies() const { | 43 CannedBrowsingDataCookieHelper* cookies() const { return cookies_.get(); } |
44 return cookies_; | |
45 } | |
46 CannedBrowsingDataDatabaseHelper* databases() const { | 44 CannedBrowsingDataDatabaseHelper* databases() const { |
47 return databases_; | 45 return databases_.get(); |
48 } | 46 } |
49 CannedBrowsingDataFileSystemHelper* file_systems() const { | 47 CannedBrowsingDataFileSystemHelper* file_systems() const { |
50 return file_systems_; | 48 return file_systems_.get(); |
51 } | 49 } |
52 CannedBrowsingDataIndexedDBHelper* indexed_dbs() const { | 50 CannedBrowsingDataIndexedDBHelper* indexed_dbs() const { |
53 return indexed_dbs_; | 51 return indexed_dbs_.get(); |
54 } | 52 } |
55 CannedBrowsingDataLocalStorageHelper* local_storages() const { | 53 CannedBrowsingDataLocalStorageHelper* local_storages() const { |
56 return local_storages_; | 54 return local_storages_.get(); |
57 } | 55 } |
58 CannedBrowsingDataServerBoundCertHelper* server_bound_certs() const { | 56 CannedBrowsingDataServerBoundCertHelper* server_bound_certs() const { |
59 return server_bound_certs_; | 57 return server_bound_certs_.get(); |
60 } | 58 } |
61 CannedBrowsingDataLocalStorageHelper* session_storages() const { | 59 CannedBrowsingDataLocalStorageHelper* session_storages() const { |
62 return session_storages_; | 60 return session_storages_.get(); |
63 } | 61 } |
64 | 62 |
65 private: | 63 private: |
66 scoped_refptr<CannedBrowsingDataAppCacheHelper> appcaches_; | 64 scoped_refptr<CannedBrowsingDataAppCacheHelper> appcaches_; |
67 scoped_refptr<CannedBrowsingDataCookieHelper> cookies_; | 65 scoped_refptr<CannedBrowsingDataCookieHelper> cookies_; |
68 scoped_refptr<CannedBrowsingDataDatabaseHelper> databases_; | 66 scoped_refptr<CannedBrowsingDataDatabaseHelper> databases_; |
69 scoped_refptr<CannedBrowsingDataFileSystemHelper> file_systems_; | 67 scoped_refptr<CannedBrowsingDataFileSystemHelper> file_systems_; |
70 scoped_refptr<CannedBrowsingDataIndexedDBHelper> indexed_dbs_; | 68 scoped_refptr<CannedBrowsingDataIndexedDBHelper> indexed_dbs_; |
71 scoped_refptr<CannedBrowsingDataLocalStorageHelper> local_storages_; | 69 scoped_refptr<CannedBrowsingDataLocalStorageHelper> local_storages_; |
72 scoped_refptr<CannedBrowsingDataServerBoundCertHelper> server_bound_certs_; | 70 scoped_refptr<CannedBrowsingDataServerBoundCertHelper> server_bound_certs_; |
73 scoped_refptr<CannedBrowsingDataLocalStorageHelper> session_storages_; | 71 scoped_refptr<CannedBrowsingDataLocalStorageHelper> session_storages_; |
74 | 72 |
75 DISALLOW_COPY_AND_ASSIGN(LocalSharedObjectsContainer); | 73 DISALLOW_COPY_AND_ASSIGN(LocalSharedObjectsContainer); |
76 }; | 74 }; |
77 | 75 |
78 #endif // CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_CONTAINER_H_ | 76 #endif // CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_CONTAINER_H_ |
OLD | NEW |