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

Side by Side Diff: chrome/browser/printing/print_dialog_cloud.cc

Issue 7322004: DevTools: devtools manager should know nothing about DevToolsWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 9 years, 5 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
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/printing/print_dialog_cloud.h" 5 #include "chrome/browser/printing/print_dialog_cloud.h"
6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h"
7 7
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/json/json_reader.h" 11 #include "base/json/json_reader.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/prefs/pref_service.h" 14 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" 15 #include "chrome/browser/printing/cloud_print/cloud_print_url.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/profiles/profile_manager.h" 17 #include "chrome/browser/profiles/profile_manager.h"
18 #include "chrome/browser/ui/browser_dialogs.h" 18 #include "chrome/browser/ui/browser_dialogs.h"
19 #include "chrome/browser/ui/browser_list.h" 19 #include "chrome/browser/ui/browser_list.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
22 #include "chrome/common/print_messages.h" 22 #include "chrome/common/print_messages.h"
23 #include "chrome/common/url_constants.h" 23 #include "chrome/common/url_constants.h"
24 #include "content/browser/browser_thread.h" 24 #include "content/browser/browser_thread.h"
25 #include "content/browser/debugger/devtools_manager.h" 25 #include "content/browser/debugger/devtools_window.h"
26 #include "content/browser/renderer_host/render_view_host.h" 26 #include "content/browser/renderer_host/render_view_host.h"
27 #include "content/browser/tab_contents/tab_contents.h" 27 #include "content/browser/tab_contents/tab_contents.h"
28 #include "content/browser/tab_contents/tab_contents_view.h" 28 #include "content/browser/tab_contents/tab_contents_view.h"
29 #include "content/browser/webui/web_ui.h" 29 #include "content/browser/webui/web_ui.h"
30 #include "content/common/notification_registrar.h" 30 #include "content/common/notification_registrar.h"
31 #include "content/common/notification_source.h" 31 #include "content/common/notification_source.h"
32 #include "content/common/notification_type.h" 32 #include "content/common/notification_type.h"
33 #include "content/common/view_messages.h" 33 #include "content/common/view_messages.h"
34 #include "ui/base/l10n/l10n_util.h" 34 #include "ui/base/l10n/l10n_util.h"
35 #include "webkit/glue/webpreferences.h" 35 #include "webkit/glue/webpreferences.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 } 309 }
310 310
311 void CloudPrintFlowHandler::HandleShowDebugger(const ListValue* args) { 311 void CloudPrintFlowHandler::HandleShowDebugger(const ListValue* args) {
312 ShowDebugger(); 312 ShowDebugger();
313 } 313 }
314 314
315 void CloudPrintFlowHandler::ShowDebugger() { 315 void CloudPrintFlowHandler::ShowDebugger() {
316 if (web_ui_) { 316 if (web_ui_) {
317 RenderViewHost* rvh = web_ui_->tab_contents()->render_view_host(); 317 RenderViewHost* rvh = web_ui_->tab_contents()->render_view_host();
318 if (rvh) 318 if (rvh)
319 DevToolsManager::GetInstance()->OpenDevToolsWindow(rvh); 319 DevToolsWindow::OpenDevToolsWindow(rvh);
320 } 320 }
321 } 321 }
322 322
323 scoped_refptr<CloudPrintDataSender> 323 scoped_refptr<CloudPrintDataSender>
324 CloudPrintFlowHandler::CreateCloudPrintDataSender() { 324 CloudPrintFlowHandler::CreateCloudPrintDataSender() {
325 DCHECK(web_ui_); 325 DCHECK(web_ui_);
326 print_data_helper_.reset(new CloudPrintDataSenderHelper(web_ui_)); 326 print_data_helper_.reset(new CloudPrintDataSenderHelper(web_ui_));
327 return new CloudPrintDataSender(print_data_helper_.get(), 327 return new CloudPrintDataSender(print_data_helper_.get(),
328 print_job_title_, 328 print_job_title_,
329 file_type_); 329 file_type_);
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 print_job_title, 628 print_job_title,
629 file_type, 629 file_type,
630 false); 630 false);
631 return true; 631 return true;
632 } 632 }
633 } 633 }
634 return false; 634 return false;
635 } 635 }
636 636
637 } // end namespace 637 } // end namespace
OLDNEW
« no previous file with comments | « chrome/browser/external_tab_container_win.cc ('k') | chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698