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

Side by Side Diff: chrome/browser/extensions/extension_data_deleter.cc

Issue 8159006: Move kExtensionScheme from content to chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_render_message_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/extensions/extension_data_deleter.h" 5 #include "chrome/browser/extensions/extension_data_deleter.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/chrome_constants.h" 9 #include "chrome/common/chrome_constants.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
11 #include "chrome/common/url_constants.h"
11 #include "content/browser/appcache/chrome_appcache_service.h" 12 #include "content/browser/appcache/chrome_appcache_service.h"
12 #include "content/browser/in_process_webkit/webkit_context.h" 13 #include "content/browser/in_process_webkit/webkit_context.h"
13 #include "content/common/url_constants.h"
14 #include "net/base/cookie_monster.h" 14 #include "net/base/cookie_monster.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 #include "net/url_request/url_request_context.h" 16 #include "net/url_request/url_request_context.h"
17 #include "net/url_request/url_request_context_getter.h" 17 #include "net/url_request/url_request_context_getter.h"
18 #include "webkit/database/database_tracker.h" 18 #include "webkit/database/database_tracker.h"
19 #include "webkit/database/database_util.h" 19 #include "webkit/database/database_util.h"
20 #include "webkit/fileapi/file_system_context.h" 20 #include "webkit/fileapi/file_system_context.h"
21 21
22 ExtensionDataDeleter::ExtensionDataDeleter(Profile* profile, 22 ExtensionDataDeleter::ExtensionDataDeleter(Profile* profile,
23 const std::string& extension_id, 23 const std::string& extension_id,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // around, and holding open file handles in this directory. 117 // around, and holding open file handles in this directory.
118 // See http://crbug.com/85127 118 // See http://crbug.com/85127
119 if (!isolated_app_path_.empty()) 119 if (!isolated_app_path_.empty())
120 file_util::Delete(isolated_app_path_, true); 120 file_util::Delete(isolated_app_path_, true);
121 } 121 }
122 122
123 void ExtensionDataDeleter::DeleteAppcachesOnIOThread() { 123 void ExtensionDataDeleter::DeleteAppcachesOnIOThread() {
124 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 124 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
125 appcache_service_->DeleteAppCachesForOrigin(storage_origin_, NULL); 125 appcache_service_->DeleteAppCachesForOrigin(storage_origin_, NULL);
126 } 126 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698