Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: chrome/browser/content_settings/local_shared_objects_container.h

Issue 10790150: Show Flash LSOs for Pepper Flash in cookie dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 10
10 class CannedBrowsingDataAppCacheHelper; 11 class CannedBrowsingDataAppCacheHelper;
11 class CannedBrowsingDataCookieHelper; 12 class CannedBrowsingDataCookieHelper;
12 class CannedBrowsingDataDatabaseHelper; 13 class CannedBrowsingDataDatabaseHelper;
13 class CannedBrowsingDataFileSystemHelper; 14 class CannedBrowsingDataFileSystemHelper;
14 class CannedBrowsingDataIndexedDBHelper; 15 class CannedBrowsingDataIndexedDBHelper;
15 class CannedBrowsingDataLocalStorageHelper; 16 class CannedBrowsingDataLocalStorageHelper;
16 class CannedBrowsingDataServerBoundCertHelper; 17 class CannedBrowsingDataServerBoundCertHelper;
18 class CookiesTreeModel;
17 class GURL; 19 class GURL;
18 class Profile; 20 class Profile;
19 21
20 class LocalSharedObjectsContainer { 22 class LocalSharedObjectsContainer {
21 public: 23 public:
22 explicit LocalSharedObjectsContainer(Profile* profile); 24 explicit LocalSharedObjectsContainer(Profile* profile);
23 ~LocalSharedObjectsContainer(); 25 ~LocalSharedObjectsContainer();
24 26
25 // Empties the container. 27 // Empties the container.
26 void Reset(); 28 void Reset();
27 29
28 // Returns the number of objects stored in the container. 30 // Returns the number of objects stored in the container.
29 size_t GetObjectCount() const; 31 size_t GetObjectCount() const;
30 32
31 // Returns the number of objects for the given |origin|. 33 // Returns the number of objects for the given |origin|.
32 size_t GetObjectCountForDomain(const GURL& url) const; 34 size_t GetObjectCountForDomain(const GURL& url) const;
33 35
36 // Creates a new CookiesTreeModel for all objects in the container,
37 // copying each of them.
38 scoped_ptr<CookiesTreeModel> CreateCookiesTreeModel() const;
39
34 CannedBrowsingDataAppCacheHelper* appcaches() const { 40 CannedBrowsingDataAppCacheHelper* appcaches() const {
35 return appcaches_; 41 return appcaches_;
36 } 42 }
37 CannedBrowsingDataCookieHelper* cookies() const { 43 CannedBrowsingDataCookieHelper* cookies() const {
38 return cookies_; 44 return cookies_;
39 } 45 }
40 CannedBrowsingDataDatabaseHelper* databases() const { 46 CannedBrowsingDataDatabaseHelper* databases() const {
41 return databases_; 47 return databases_;
42 } 48 }
43 CannedBrowsingDataFileSystemHelper* file_systems() const { 49 CannedBrowsingDataFileSystemHelper* file_systems() const {
(...skipping 19 matching lines...) Expand all
63 scoped_refptr<CannedBrowsingDataFileSystemHelper> file_systems_; 69 scoped_refptr<CannedBrowsingDataFileSystemHelper> file_systems_;
64 scoped_refptr<CannedBrowsingDataIndexedDBHelper> indexed_dbs_; 70 scoped_refptr<CannedBrowsingDataIndexedDBHelper> indexed_dbs_;
65 scoped_refptr<CannedBrowsingDataLocalStorageHelper> local_storages_; 71 scoped_refptr<CannedBrowsingDataLocalStorageHelper> local_storages_;
66 scoped_refptr<CannedBrowsingDataServerBoundCertHelper> server_bound_certs_; 72 scoped_refptr<CannedBrowsingDataServerBoundCertHelper> server_bound_certs_;
67 scoped_refptr<CannedBrowsingDataLocalStorageHelper> session_storages_; 73 scoped_refptr<CannedBrowsingDataLocalStorageHelper> session_storages_;
68 74
69 DISALLOW_COPY_AND_ASSIGN(LocalSharedObjectsContainer); 75 DISALLOW_COPY_AND_ASSIGN(LocalSharedObjectsContainer);
70 }; 76 };
71 77
72 #endif // CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_CONTAINER_H_ 78 #endif // CHROME_BROWSER_CONTENT_SETTINGS_LOCAL_SHARED_OBJECTS_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698