| 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 "content/browser/webui/generic_handler.h" | 5 #include "content/browser/webui/generic_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "content/browser/disposition_utils.h" | 11 #include "content/browser/disposition_utils.h" |
| 12 #include "content/browser/webui/web_ui.h" |
| 12 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
| 13 | 14 |
| 14 using content::OpenURLParams; | 15 using content::OpenURLParams; |
| 15 | 16 |
| 16 GenericHandler::GenericHandler() { | 17 GenericHandler::GenericHandler() { |
| 17 } | 18 } |
| 18 | 19 |
| 19 GenericHandler::~GenericHandler() { | 20 GenericHandler::~GenericHandler() { |
| 20 } | 21 } |
| 21 | 22 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 49 meta_key, shift_key); | 50 meta_key, shift_key); |
| 50 if (disposition == CURRENT_TAB && target_string == "_blank") | 51 if (disposition == CURRENT_TAB && target_string == "_blank") |
| 51 disposition = NEW_FOREGROUND_TAB; | 52 disposition = NEW_FOREGROUND_TAB; |
| 52 | 53 |
| 53 web_ui()->web_contents()->OpenURL(OpenURLParams( | 54 web_ui()->web_contents()->OpenURL(OpenURLParams( |
| 54 GURL(url_string), content::Referrer(), disposition, | 55 GURL(url_string), content::Referrer(), disposition, |
| 55 content::PAGE_TRANSITION_LINK, false)); | 56 content::PAGE_TRANSITION_LINK, false)); |
| 56 | 57 |
| 57 // This may delete us! | 58 // This may delete us! |
| 58 } | 59 } |
| OLD | NEW |