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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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
OLDNEW
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/cloud_print_signin_dialog.h" 5 #include "chrome/browser/ui/webui/cloud_print_signin_dialog.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/prefs/pref_service.h" 8 #include "chrome/browser/prefs/pref_service.h"
9 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" 9 #include "chrome/browser/printing/cloud_print/cloud_print_url.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/browser_list.h" 12 #include "chrome/browser/ui/browser_list.h"
13 #include "chrome/browser/ui/webui/html_dialog_ui.h" 13 #include "chrome/browser/ui/webui/html_dialog_ui.h"
14 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "content/browser/renderer_host/render_view_host.h" 16 #include "content/browser/renderer_host/render_view_host.h"
17 #include "content/browser/tab_contents/navigation_controller.h" 17 #include "content/browser/tab_contents/navigation_controller.h"
18 #include "content/browser/tab_contents/tab_contents.h" 18 #include "content/browser/tab_contents/tab_contents.h"
19 #include "content/browser/tab_contents/tab_contents_view.h" 19 #include "content/browser/tab_contents/tab_contents_view.h"
20 #include "content/common/view_messages.h" 20 #include "content/common/view_messages.h"
21 #include "content/public/browser/notification_registrar.h" 21 #include "content/public/browser/notification_registrar.h"
22 #include "content/public/browser/notification_source.h" 22 #include "content/public/browser/notification_source.h"
23 #include "content/public/browser/notification_types.h" 23 #include "content/public/browser/notification_types.h"
24 24
25 using content::BrowserThread;
26
25 // This module implements a sign in dialog for cloud print. 27 // This module implements a sign in dialog for cloud print.
26 // it is based heavily off "chrome/browser/printing/print_dialog_cloud.cc". 28 // it is based heavily off "chrome/browser/printing/print_dialog_cloud.cc".
27 // See the comments in that file for a discussion about how this works. 29 // See the comments in that file for a discussion about how this works.
28 30
29 namespace cloud_print_signin_dialog { 31 namespace cloud_print_signin_dialog {
30 32
31 // The flow handler sends our dialog to the correct URL, saves size info, 33 // The flow handler sends our dialog to the correct URL, saves size info,
32 // and closes the dialog when sign in is complete. 34 // and closes the dialog when sign in is complete.
33 class CloudPrintSigninFlowHandler : public WebUIMessageHandler, 35 class CloudPrintSigninFlowHandler : public WebUIMessageHandler,
34 public content::NotificationObserver { 36 public content::NotificationObserver {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 181
180 void CreateCloudPrintSigninDialog(TabContents* parent_tab) { 182 void CreateCloudPrintSigninDialog(TabContents* parent_tab) {
181 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 183 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
182 184
183 BrowserThread::PostTask( 185 BrowserThread::PostTask(
184 BrowserThread::UI, FROM_HERE, 186 BrowserThread::UI, FROM_HERE,
185 base::Bind(&CreateCloudPrintSigninDialogImpl, parent_tab)); 187 base::Bind(&CreateCloudPrintSigninDialogImpl, parent_tab));
186 } 188 }
187 } // namespace cloud_print_signin_dialog 189 } // namespace cloud_print_signin_dialog
188 190
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc ('k') | chrome/browser/ui/webui/devtools_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698