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" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" | 21 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" |
22 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" | 22 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" |
23 #include "chrome/browser/browsing_data/browsing_data_server_bound_cert_helper.h" | 23 #include "chrome/browser/browsing_data/browsing_data_server_bound_cert_helper.h" |
24 #include "chrome/browser/extensions/extension_service.h" | 24 #include "chrome/browser/extensions/extension_service.h" |
25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
26 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" | 26 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" |
27 #include "content/public/browser/web_ui.h" | 27 #include "content/public/browser/web_ui.h" |
28 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
29 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
30 | 30 |
31 namespace options2 { | 31 namespace options { |
32 | 32 |
33 CookiesViewHandler::CookiesViewHandler() | 33 CookiesViewHandler::CookiesViewHandler() |
34 : batch_update_(false), | 34 : batch_update_(false), |
35 app_context_(false), | 35 app_context_(false), |
36 model_util_(new CookiesTreeModelUtil) { | 36 model_util_(new CookiesTreeModelUtil) { |
37 } | 37 } |
38 | 38 |
39 CookiesViewHandler::~CookiesViewHandler() { | 39 CookiesViewHandler::~CookiesViewHandler() { |
40 } | 40 } |
41 | 41 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 std::string CookiesViewHandler::GetCallback( | 315 std::string CookiesViewHandler::GetCallback( |
316 std::string method, CookiesTreeModel* model) { | 316 std::string method, CookiesTreeModel* model) { |
317 std::string callback("CookiesView"); | 317 std::string callback("CookiesView"); |
318 | 318 |
319 if (model == app_cookies_tree_model_) | 319 if (model == app_cookies_tree_model_) |
320 callback.append("App"); | 320 callback.append("App"); |
321 return callback.append(".").append(method); | 321 return callback.append(".").append(method); |
322 } | 322 } |
323 | 323 |
324 } // namespace options2 | 324 } // namespace options |
OLD | NEW |