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/collected_cookies_ui_delegate.h" | 5 #include "chrome/browser/ui/webui/collected_cookies_ui_delegate.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/content_settings/host_content_settings_map.h" | 10 #include "chrome/browser/content_settings/host_content_settings_map.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 wrapper->profile()->GetChromeURLDataManager()->AddDataSource(source); | 163 wrapper->profile()->GetChromeURLDataManager()->AddDataSource(source); |
164 } | 164 } |
165 | 165 |
166 CollectedCookiesUIDelegate::~CollectedCookiesUIDelegate() { | 166 CollectedCookiesUIDelegate::~CollectedCookiesUIDelegate() { |
167 } | 167 } |
168 | 168 |
169 bool CollectedCookiesUIDelegate::IsDialogModal() const { | 169 bool CollectedCookiesUIDelegate::IsDialogModal() const { |
170 return false; | 170 return false; |
171 } | 171 } |
172 | 172 |
173 std::wstring CollectedCookiesUIDelegate::GetDialogTitle() const { | 173 string16 CollectedCookiesUIDelegate::GetDialogTitle() const { |
174 return std::wstring(); | 174 return string16(); |
175 } | 175 } |
176 | 176 |
177 GURL CollectedCookiesUIDelegate::GetDialogContentURL() const { | 177 GURL CollectedCookiesUIDelegate::GetDialogContentURL() const { |
178 return GURL(chrome::kChromeUICollectedCookiesURL); | 178 return GURL(chrome::kChromeUICollectedCookiesURL); |
179 } | 179 } |
180 | 180 |
181 void CollectedCookiesUIDelegate::GetWebUIMessageHandlers( | 181 void CollectedCookiesUIDelegate::GetWebUIMessageHandlers( |
182 std::vector<WebUIMessageHandler*>* handlers) const { | 182 std::vector<WebUIMessageHandler*>* handlers) const { |
183 const WebUIMessageHandler* handler = this; | 183 const WebUIMessageHandler* handler = this; |
184 handlers->push_back(const_cast<WebUIMessageHandler*>(handler)); | 184 handlers->push_back(const_cast<WebUIMessageHandler*>(handler)); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 if (!args->GetString(0, &node_path)) | 283 if (!args->GetString(0, &node_path)) |
284 return; | 284 return; |
285 | 285 |
286 CookieTreeOriginNode* origin_node = GetOriginNode( | 286 CookieTreeOriginNode* origin_node = GetOriginNode( |
287 blocked_cookies_tree_model_.get(), node_path); | 287 blocked_cookies_tree_model_.get(), node_path); |
288 if (!origin_node) | 288 if (!origin_node) |
289 return; | 289 return; |
290 | 290 |
291 AddContentException(origin_node, CONTENT_SETTING_SESSION_ONLY); | 291 AddContentException(origin_node, CONTENT_SETTING_SESSION_ONLY); |
292 } | 292 } |
OLD | NEW |