Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 10448066: Move the web dialogs code to src/ui/web_dialogs from src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_dialogs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_dialogs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698