| OLD | NEW |
| 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/ui/webui/options2/cookies_view_handler2.h" | 5 #include "chrome/browser/ui/webui/options2/cookies_view_handler2.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/browsing_data_appcache_helper.h" | 11 #include "chrome/browser/browsing_data_appcache_helper.h" |
| 12 #include "chrome/browser/browsing_data_cookie_helper.h" | 12 #include "chrome/browser/browsing_data_cookie_helper.h" |
| 13 #include "chrome/browser/browsing_data_database_helper.h" | 13 #include "chrome/browser/browsing_data_database_helper.h" |
| 14 #include "chrome/browser/browsing_data_file_system_helper.h" | 14 #include "chrome/browser/browsing_data_file_system_helper.h" |
| 15 #include "chrome/browser/browsing_data_indexed_db_helper.h" | 15 #include "chrome/browser/browsing_data_indexed_db_helper.h" |
| 16 #include "chrome/browser/browsing_data_quota_helper.h" | 16 #include "chrome/browser/browsing_data_quota_helper.h" |
| 17 #include "chrome/browser/browsing_data_local_storage_helper.h" | 17 #include "chrome/browser/browsing_data_local_storage_helper.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" | 19 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" |
| 20 #include "content/browser/webui/web_ui.h" |
| 20 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
| 21 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
| 22 | 23 |
| 23 namespace options2 { | 24 namespace options2 { |
| 24 | 25 |
| 25 CookiesViewHandler::CookiesViewHandler() : batch_update_(false) { | 26 CookiesViewHandler::CookiesViewHandler() : batch_update_(false) { |
| 26 } | 27 } |
| 27 | 28 |
| 28 CookiesViewHandler::~CookiesViewHandler() { | 29 CookiesViewHandler::~CookiesViewHandler() { |
| 29 } | 30 } |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 ListValue args; | 218 ListValue args; |
| 218 args.Append(parent == cookies_tree_model_->GetRoot() ? | 219 args.Append(parent == cookies_tree_model_->GetRoot() ? |
| 219 Value::CreateNullValue() : | 220 Value::CreateNullValue() : |
| 220 Value::CreateStringValue(cookies_tree_model_util::GetTreeNodeId(parent))); | 221 Value::CreateStringValue(cookies_tree_model_util::GetTreeNodeId(parent))); |
| 221 args.Append(children); | 222 args.Append(children); |
| 222 | 223 |
| 223 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); | 224 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); |
| 224 } | 225 } |
| 225 | 226 |
| 226 } // namespace options2 | 227 } // namespace options2 |
| OLD | NEW |