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 #include "chrome/browser/ui/webui/options/cookies_view_handler.h" | 5 #include "chrome/browser/ui/webui/options/cookies_view_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" | 13 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" |
14 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h" | 14 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h" |
15 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" | 15 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" |
16 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" | 16 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" |
17 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" | 17 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" |
18 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h" | 18 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h" |
19 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" | 19 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" |
20 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" | 20 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" |
21 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" | 21 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" |
22 #include "chrome/browser/browsing_data/browsing_data_service_worker_helper.h" | 22 #include "chrome/browser/browsing_data/browsing_data_service_worker_helper.h" |
23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" | 24 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" |
| 25 #include "chrome/grit/generated_resources.h" |
25 #include "content/public/browser/browser_context.h" | 26 #include "content/public/browser/browser_context.h" |
26 #include "content/public/browser/render_process_host.h" | 27 #include "content/public/browser/render_process_host.h" |
27 #include "content/public/browser/site_instance.h" | 28 #include "content/public/browser/site_instance.h" |
28 #include "content/public/browser/storage_partition.h" | 29 #include "content/public/browser/storage_partition.h" |
29 #include "content/public/browser/web_ui.h" | 30 #include "content/public/browser/web_ui.h" |
30 #include "grit/generated_resources.h" | |
31 | 31 |
32 namespace storage { | 32 namespace storage { |
33 class FileSystemContext; | 33 class FileSystemContext; |
34 } | 34 } |
35 | 35 |
36 namespace options { | 36 namespace options { |
37 | 37 |
38 CookiesViewHandler::CookiesViewHandler() | 38 CookiesViewHandler::CookiesViewHandler() |
39 : batch_update_(false), | 39 : batch_update_(false), |
40 model_util_(new CookiesTreeModelUtil) { | 40 model_util_(new CookiesTreeModelUtil) { |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); | 269 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); |
270 } | 270 } |
271 | 271 |
272 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { | 272 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { |
273 cookies_tree_model_.reset(); | 273 cookies_tree_model_.reset(); |
274 | 274 |
275 EnsureCookiesTreeModelCreated(); | 275 EnsureCookiesTreeModelCreated(); |
276 } | 276 } |
277 | 277 |
278 } // namespace options | 278 } // namespace options |
OLD | NEW |