| 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/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #endif // OS_WIN | 10 #endif // OS_WIN |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 using content::NavigationController; | 217 using content::NavigationController; |
| 218 using content::NavigationEntry; | 218 using content::NavigationEntry; |
| 219 using content::OpenURLParams; | 219 using content::OpenURLParams; |
| 220 using content::PluginService; | 220 using content::PluginService; |
| 221 using content::Referrer; | 221 using content::Referrer; |
| 222 using content::SiteInstance; | 222 using content::SiteInstance; |
| 223 using content::SSLStatus; | 223 using content::SSLStatus; |
| 224 using content::UserMetricsAction; | 224 using content::UserMetricsAction; |
| 225 using content::WebContents; | 225 using content::WebContents; |
| 226 using extensions::Extension; | 226 using extensions::Extension; |
| 227 using ui::WebDialogDelegate; |
| 227 | 228 |
| 228 /////////////////////////////////////////////////////////////////////////////// | 229 /////////////////////////////////////////////////////////////////////////////// |
| 229 | 230 |
| 230 namespace { | 231 namespace { |
| 231 | 232 |
| 232 // The URL to be loaded to display the "Report a broken page" form. | 233 // The URL to be loaded to display the "Report a broken page" form. |
| 233 const char kBrokenPageUrl[] = | 234 const char kBrokenPageUrl[] = |
| 234 "https://www.google.com/support/chrome/bin/request.py?contact_type=" | 235 "https://www.google.com/support/chrome/bin/request.py?contact_type=" |
| 235 "broken_website&format=inproduct&p.page_title=$1&p.page_url=$2"; | 236 "broken_website&format=inproduct&p.page_title=$1&p.page_url=$2"; |
| 236 | 237 |
| (...skipping 4876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5113 if (contents && !allow_js_access) { | 5114 if (contents && !allow_js_access) { |
| 5114 contents->web_contents()->GetController().LoadURL( | 5115 contents->web_contents()->GetController().LoadURL( |
| 5115 target_url, | 5116 target_url, |
| 5116 content::Referrer(), | 5117 content::Referrer(), |
| 5117 content::PAGE_TRANSITION_LINK, | 5118 content::PAGE_TRANSITION_LINK, |
| 5118 std::string()); // No extra headers. | 5119 std::string()); // No extra headers. |
| 5119 } | 5120 } |
| 5120 | 5121 |
| 5121 return contents != NULL; | 5122 return contents != NULL; |
| 5122 } | 5123 } |
| OLD | NEW |