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

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

Issue 8983010: Convert WebContents to return a content::NavigationController instead of the implementation. Upda... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 11 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_preview_tab_controller.h" 5 #include "chrome/browser/printing/print_preview_tab_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/ui/browser_navigator.h" 23 #include "chrome/browser/ui/browser_navigator.h"
24 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 24 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
25 #include "chrome/browser/ui/webui/constrained_html_ui.h" 25 #include "chrome/browser/ui/webui/constrained_html_ui.h"
26 #include "chrome/browser/ui/webui/html_dialog_ui.h" 26 #include "chrome/browser/ui/webui/html_dialog_ui.h"
27 #include "chrome/browser/ui/webui/print_preview_ui.h" 27 #include "chrome/browser/ui/webui/print_preview_ui.h"
28 #include "chrome/common/chrome_content_client.h" 28 #include "chrome/common/chrome_content_client.h"
29 #include "chrome/common/chrome_switches.h" 29 #include "chrome/common/chrome_switches.h"
30 #include "chrome/common/url_constants.h" 30 #include "chrome/common/url_constants.h"
31 #include "content/browser/renderer_host/render_view_host.h" 31 #include "content/browser/renderer_host/render_view_host.h"
32 #include "content/browser/renderer_host/render_view_host_delegate.h" 32 #include "content/browser/renderer_host/render_view_host_delegate.h"
33 #include "content/browser/tab_contents/navigation_controller.h"
34 #include "content/public/browser/web_contents.h" 33 #include "content/public/browser/web_contents.h"
34 #include "content/public/browser/navigation_controller.h"
35 #include "content/public/browser/navigation_details.h" 35 #include "content/public/browser/navigation_details.h"
36 #include "content/public/browser/navigation_entry.h" 36 #include "content/public/browser/navigation_entry.h"
37 #include "content/public/browser/notification_details.h" 37 #include "content/public/browser/notification_details.h"
38 #include "content/public/browser/notification_source.h" 38 #include "content/public/browser/notification_source.h"
39 #include "content/public/browser/notification_types.h" 39 #include "content/public/browser/notification_types.h"
40 #include "content/public/browser/render_process_host.h" 40 #include "content/public/browser/render_process_host.h"
41 #include "webkit/plugins/webplugininfo.h" 41 #include "webkit/plugins/webplugininfo.h"
42 42
43 using content::WebContents; 43 using content::WebContents;
44 using content::WebUIMessageHandler; 44 using content::WebUIMessageHandler;
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 PrintPreviewUI* print_preview_ui = 488 PrintPreviewUI* print_preview_ui =
489 static_cast<PrintPreviewUI*>(preview_tab->web_contents()->GetWebUI()); 489 static_cast<PrintPreviewUI*>(preview_tab->web_contents()->GetWebUI());
490 if (print_preview_ui) 490 if (print_preview_ui)
491 print_preview_ui->OnTabDestroyed(); 491 print_preview_ui->OnTabDestroyed();
492 492
493 preview_tab_map_.erase(preview_tab); 493 preview_tab_map_.erase(preview_tab);
494 RemoveObservers(preview_tab); 494 RemoveObservers(preview_tab);
495 } 495 }
496 496
497 } // namespace printing 497 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698