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/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" | 23 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" |
24 #include "content/public/browser/browser_context.h" | 24 #include "content/public/browser/browser_context.h" |
25 #include "content/public/browser/render_process_host.h" | 25 #include "content/public/browser/render_process_host.h" |
26 #include "content/public/browser/site_instance.h" | 26 #include "content/public/browser/site_instance.h" |
27 #include "content/public/browser/storage_partition.h" | 27 #include "content/public/browser/storage_partition.h" |
28 #include "content/public/browser/web_ui.h" | 28 #include "content/public/browser/web_ui.h" |
29 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
30 #include "ui/base/l10n/l10n_util.h" | |
31 | 30 |
32 namespace fileapi { | 31 namespace fileapi { |
33 class FileSystemContext; | 32 class FileSystemContext; |
34 } | 33 } |
35 | 34 |
36 namespace options { | 35 namespace options { |
37 | 36 |
38 CookiesViewHandler::CookiesViewHandler() | 37 CookiesViewHandler::CookiesViewHandler() |
39 : batch_update_(false), | 38 : batch_update_(false), |
40 model_util_(new CookiesTreeModelUtil) { | 39 model_util_(new CookiesTreeModelUtil) { |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); | 262 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); |
264 } | 263 } |
265 | 264 |
266 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { | 265 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { |
267 cookies_tree_model_.reset(); | 266 cookies_tree_model_.reset(); |
268 | 267 |
269 EnsureCookiesTreeModelCreated(); | 268 EnsureCookiesTreeModelCreated(); |
270 } | 269 } |
271 | 270 |
272 } // namespace options | 271 } // namespace options |
OLD | NEW |