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

Side by Side Diff: chrome/browser/extensions/data_deleter.h

Issue 10919307: Move IndexedDBContext into the StoragePartition and ensure isolation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove useless include Created 8 years, 3 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) 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_EXTENSIONS_DATA_DELETER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_
6 #define CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/sequenced_task_runner_helpers.h" 10 #include "base/sequenced_task_runner_helpers.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Deletes the cookies for the extension. May only be called on the io 67 // Deletes the cookies for the extension. May only be called on the io
68 // thread. 68 // thread.
69 void DeleteCookiesOnIOThread(); 69 void DeleteCookiesOnIOThread();
70 70
71 // Deletes the database for the extension. May only be called on the file 71 // Deletes the database for the extension. May only be called on the file
72 // thread. 72 // thread.
73 void DeleteDatabaseOnFileThread(); 73 void DeleteDatabaseOnFileThread();
74 74
75 // Deletes indexed db files for the extension. May only be called on the 75 // Deletes indexed db files for the extension. May only be called on the
76 // webkit thread. 76 // webkit thread.
77 void DeleteIndexedDBOnWebkitThread( 77 void DeleteIndexedDBOnWebkitThread();
78 scoped_refptr<content::IndexedDBContext> indexed_db_context);
79 78
80 // Deletes filesystem files for the extension. May only be called on the 79 // Deletes filesystem files for the extension. May only be called on the
81 // file thread. 80 // file thread.
82 void DeleteFileSystemOnFileThread(); 81 void DeleteFileSystemOnFileThread();
83 82
84 // Deletes appcache files for the extension. May only be called on the IO 83 // Deletes appcache files for the extension. May only be called on the IO
85 // thread. 84 // thread.
86 void DeleteAppcachesOnIOThread(appcache::AppCacheService* appcache_service); 85 void DeleteAppcachesOnIOThread(appcache::AppCacheService* appcache_service);
87 86
88 // The ID of the extension being deleted. 87 // The ID of the extension being deleted.
89 const std::string extension_id_; 88 const std::string extension_id_;
90 89
91 // The database context for deleting the database. 90 // The database context for deleting the database.
92 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; 91 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
93 92
94 // Provides access to the request context. 93 // Provides access to the request context.
95 scoped_refptr<net::URLRequestContextGetter> extension_request_context_; 94 scoped_refptr<net::URLRequestContextGetter> extension_request_context_;
96 95
97 // The origin of the extension/app for which we're going to clear data. 96 // The origin of the extension/app for which we're going to clear data.
98 GURL storage_origin_; 97 GURL storage_origin_;
99 98
100 // The security origin identifier for which we're deleting stuff. 99 // The security origin identifier for which we're deleting stuff.
101 string16 origin_id_; 100 string16 origin_id_;
102 101
103 scoped_refptr<fileapi::FileSystemContext> file_system_context_; 102 scoped_refptr<fileapi::FileSystemContext> file_system_context_;
104 103
104 scoped_refptr<content::IndexedDBContext> indexed_db_context_;
105
105 // If non-empty, the extension we're deleting is an isolated app, and this 106 // If non-empty, the extension we're deleting is an isolated app, and this
106 // is its directory which we should delete. 107 // is its directory which we should delete.
107 FilePath isolated_app_path_; 108 FilePath isolated_app_path_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(DataDeleter); 110 DISALLOW_COPY_AND_ASSIGN(DataDeleter);
110 }; 111 };
111 112
112 } // namespace extensions 113 } // namespace extensions
113 114
114 #endif // CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_ 115 #endif // CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc ('k') | chrome/browser/extensions/data_deleter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698