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/options2/cookies_view_handler.h" | 5 #include "chrome/browser/ui/webui/options2/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/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
14 #include "chrome/common/extensions/extension_set.h" | 14 #include "chrome/common/extensions/extension_set.h" |
15 #include "chrome/browser/browsing_data_appcache_helper.h" | 15 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" |
16 #include "chrome/browser/browsing_data_cookie_helper.h" | 16 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" |
17 #include "chrome/browser/browsing_data_database_helper.h" | 17 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" |
18 #include "chrome/browser/browsing_data_file_system_helper.h" | 18 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" |
19 #include "chrome/browser/browsing_data_indexed_db_helper.h" | 19 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" |
20 #include "chrome/browser/browsing_data_local_storage_helper.h" | 20 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" |
21 #include "chrome/browser/browsing_data_quota_helper.h" | 21 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" |
22 #include "chrome/browser/browsing_data_server_bound_cert_helper.h" | 22 #include "chrome/browser/browsing_data/browsing_data_server_bound_cert_helper.h" |
23 #include "chrome/browser/extensions/extension_service.h" | 23 #include "chrome/browser/extensions/extension_service.h" |
24 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
25 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" | 25 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" |
26 #include "content/public/browser/web_ui.h" | 26 #include "content/public/browser/web_ui.h" |
27 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 | 29 |
30 namespace options2 { | 30 namespace options2 { |
31 | 31 |
32 CookiesViewHandler::CookiesViewHandler() | 32 CookiesViewHandler::CookiesViewHandler() |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 std::string CookiesViewHandler::GetCallback( | 302 std::string CookiesViewHandler::GetCallback( |
303 std::string method, CookiesTreeModel* model) { | 303 std::string method, CookiesTreeModel* model) { |
304 std::string callback("CookiesView"); | 304 std::string callback("CookiesView"); |
305 | 305 |
306 if (model == app_cookies_tree_model_) | 306 if (model == app_cookies_tree_model_) |
307 callback.append("App"); | 307 callback.append("App"); |
308 return callback.append(".").append(method); | 308 return callback.append(".").append(method); |
309 } | 309 } |
310 | 310 |
311 } // namespace options2 | 311 } // namespace options2 |
OLD | NEW |