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" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 { "cookie_singular", IDS_COOKIES_SINGLE_COOKIE }, | 75 { "cookie_singular", IDS_COOKIES_SINGLE_COOKIE }, |
76 { "cookie_plural", IDS_COOKIES_PLURAL_COOKIES }, | 76 { "cookie_plural", IDS_COOKIES_PLURAL_COOKIES }, |
77 { "cookie_database_storage", IDS_COOKIES_DATABASE_STORAGE }, | 77 { "cookie_database_storage", IDS_COOKIES_DATABASE_STORAGE }, |
78 { "cookie_indexed_db", IDS_COOKIES_INDEXED_DB }, | 78 { "cookie_indexed_db", IDS_COOKIES_INDEXED_DB }, |
79 { "cookie_local_storage", IDS_COOKIES_LOCAL_STORAGE }, | 79 { "cookie_local_storage", IDS_COOKIES_LOCAL_STORAGE }, |
80 { "cookie_app_cache", IDS_COOKIES_APPLICATION_CACHE }, | 80 { "cookie_app_cache", IDS_COOKIES_APPLICATION_CACHE }, |
81 { "cookie_flash_lso", IDS_COOKIES_FLASH_LSO }, | 81 { "cookie_flash_lso", IDS_COOKIES_FLASH_LSO }, |
82 { "search_cookies", IDS_COOKIES_SEARCH_COOKIES }, | 82 { "search_cookies", IDS_COOKIES_SEARCH_COOKIES }, |
83 { "remove_cookie", IDS_COOKIES_REMOVE_LABEL }, | 83 { "remove_cookie", IDS_COOKIES_REMOVE_LABEL }, |
84 { "remove_all_cookie", IDS_COOKIES_REMOVE_ALL_LABEL }, | 84 { "remove_all_cookie", IDS_COOKIES_REMOVE_ALL_LABEL }, |
| 85 { "remove_all_shown_cookie", IDS_COOKIES_REMOVE_ALL_SHOWN_LABEL }, |
85 { "cookie_file_system", IDS_COOKIES_FILE_SYSTEM }, | 86 { "cookie_file_system", IDS_COOKIES_FILE_SYSTEM }, |
86 { "label_file_system_origin", IDS_COOKIES_LOCAL_STORAGE_ORIGIN_LABEL }, | 87 { "label_file_system_origin", IDS_COOKIES_LOCAL_STORAGE_ORIGIN_LABEL }, |
87 { "label_file_system_temporary_usage", | 88 { "label_file_system_temporary_usage", |
88 IDS_COOKIES_FILE_SYSTEM_TEMPORARY_USAGE_LABEL }, | 89 IDS_COOKIES_FILE_SYSTEM_TEMPORARY_USAGE_LABEL }, |
89 { "label_file_system_persistent_usage", | 90 { "label_file_system_persistent_usage", |
90 IDS_COOKIES_FILE_SYSTEM_PERSISTENT_USAGE_LABEL }, | 91 IDS_COOKIES_FILE_SYSTEM_PERSISTENT_USAGE_LABEL }, |
91 { "cookie_server_bound_cert", IDS_COOKIES_SERVER_BOUND_CERT }, | 92 { "cookie_server_bound_cert", IDS_COOKIES_SERVER_BOUND_CERT }, |
92 { "label_server_bound_cert_server_id", | 93 { "label_server_bound_cert_server_id", |
93 IDS_COOKIES_SERVER_BOUND_CERT_ORIGIN_LABEL }, | 94 IDS_COOKIES_SERVER_BOUND_CERT_ORIGIN_LABEL }, |
94 { "label_server_bound_cert_type", | 95 { "label_server_bound_cert_type", |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); | 263 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); |
263 } | 264 } |
264 | 265 |
265 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { | 266 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { |
266 cookies_tree_model_.reset(); | 267 cookies_tree_model_.reset(); |
267 | 268 |
268 EnsureCookiesTreeModelCreated(); | 269 EnsureCookiesTreeModelCreated(); |
269 } | 270 } |
270 | 271 |
271 } // namespace options | 272 } // namespace options |
OLD | NEW |