| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/options/cookies_view_handler.h" | 5 #include "chrome/browser/dom_ui/options/cookies_view_handler.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/i18n/time_formatting.h" | 8 #include "base/i18n/time_formatting.h" |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "base/string_split.h" | 10 #include "base/string_split.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/browsing_data_appcache_helper.h" | 14 #include "chrome/browser/browsing_data_appcache_helper.h" |
| 15 #include "chrome/browser/browsing_data_database_helper.h" | 15 #include "chrome/browser/browsing_data_database_helper.h" |
| 16 #include "chrome/browser/browsing_data_indexed_db_helper.h" | 16 #include "chrome/browser/browsing_data_indexed_db_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/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
| 20 #include "net/base/cookie_monster.h" | 20 #include "net/base/cookie_monster.h" |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 static const char kKeyId[] = "id"; | 24 static const char kKeyId[] = "id"; |
| 25 static const char kKeyTitle[] = "title"; | 25 static const char kKeyTitle[] = "title"; |
| 26 static const char kKeyIcon[] = "icon"; | 26 static const char kKeyIcon[] = "icon"; |
| 27 static const char kKeyType[] = "type"; | 27 static const char kKeyType[] = "type"; |
| 28 static const char kKeyHasChildren[] = "hasChildren"; | 28 static const char kKeyHasChildren[] = "hasChildren"; |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 GetChildNodeList(parent, 0, parent->GetChildCount(), children); | 391 GetChildNodeList(parent, 0, parent->GetChildCount(), children); |
| 392 | 392 |
| 393 ListValue args; | 393 ListValue args; |
| 394 args.Append(parent == cookies_tree_model_->GetRoot() ? | 394 args.Append(parent == cookies_tree_model_->GetRoot() ? |
| 395 Value::CreateNullValue() : | 395 Value::CreateNullValue() : |
| 396 Value::CreateStringValue(PointerToHexString(parent))); | 396 Value::CreateStringValue(PointerToHexString(parent))); |
| 397 args.Append(children); | 397 args.Append(children); |
| 398 | 398 |
| 399 dom_ui_->CallJavascriptFunction(L"CookiesView.loadChildren", args); | 399 dom_ui_->CallJavascriptFunction(L"CookiesView.loadChildren", args); |
| 400 } | 400 } |
| OLD | NEW |