OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ui/webui/settings/site_settings_handler.h" | 5 #include "chrome/browser/ui/webui/settings/site_settings_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" | 9 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "components/content_settings/core/common/content_settings_types.h" | 11 #include "components/content_settings/core/common/content_settings_types.h" |
12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
13 #include "content/public/browser/web_ui.h" | 13 #include "content/public/browser/web_ui.h" |
| 14 #include "storage/browser/quota/quota_manager.h" |
| 15 #include "storage/common/quota/quota_status_code.h" |
14 #include "ui/base/text/bytes_formatting.h" | 16 #include "ui/base/text/bytes_formatting.h" |
15 | 17 |
16 namespace settings { | 18 namespace settings { |
17 | 19 |
18 SiteSettingsHandler::SiteSettingsHandler(Profile* profile) | 20 SiteSettingsHandler::SiteSettingsHandler(Profile* profile) |
19 : profile_(profile) { | 21 : profile_(profile) { |
20 } | 22 } |
21 | 23 |
22 SiteSettingsHandler::~SiteSettingsHandler() { | 24 SiteSettingsHandler::~SiteSettingsHandler() { |
23 } | 25 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 base::Unretained(this))); | 95 base::Unretained(this))); |
94 | 96 |
95 // Also clear the *local* storage data. | 97 // Also clear the *local* storage data. |
96 scoped_refptr<BrowsingDataLocalStorageHelper> local_storage_helper = | 98 scoped_refptr<BrowsingDataLocalStorageHelper> local_storage_helper = |
97 new BrowsingDataLocalStorageHelper(profile_); | 99 new BrowsingDataLocalStorageHelper(profile_); |
98 local_storage_helper->DeleteOrigin(url); | 100 local_storage_helper->DeleteOrigin(url); |
99 } | 101 } |
100 } | 102 } |
101 | 103 |
102 } // namespace settings | 104 } // namespace settings |
OLD | NEW |