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

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

Issue 7980011: Convert the PluginService interface to be an async wrapper around PluginList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert to PS3 and rebase Created 9 years, 3 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 <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/chrome_plugin_service_filter.h" 12 #include "chrome/browser/chrome_plugin_service_filter.h"
13 #include "chrome/browser/printing/print_view_manager.h" 13 #include "chrome/browser/printing/print_view_manager.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/sessions/restore_tab_helper.h" 15 #include "chrome/browser/sessions/restore_tab_helper.h"
16 #include "chrome/browser/tabs/tab_strip_model.h" 16 #include "chrome/browser/tabs/tab_strip_model.h"
17 #include "chrome/browser/ui/browser.h" 17 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/browser_list.h" 18 #include "chrome/browser/ui/browser_list.h"
19 #include "chrome/browser/ui/browser_navigator.h" 19 #include "chrome/browser/ui/browser_navigator.h"
20 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 20 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
21 #include "chrome/browser/ui/webui/print_preview_ui.h" 21 #include "chrome/browser/ui/webui/print_preview_ui.h"
22 #include "chrome/common/chrome_content_client.h" 22 #include "chrome/common/chrome_content_client.h"
23 #include "chrome/common/chrome_switches.h" 23 #include "chrome/common/chrome_switches.h"
24 #include "chrome/common/url_constants.h" 24 #include "chrome/common/url_constants.h"
25 #include "content/browser/plugin_service.h"
jam 2011/09/22 21:10:59 nit: is this change still needed?
Robert Sesek 2011/09/22 23:26:51 Nope.
25 #include "content/browser/renderer_host/render_view_host.h" 26 #include "content/browser/renderer_host/render_view_host.h"
26 #include "content/browser/tab_contents/navigation_details.h" 27 #include "content/browser/tab_contents/navigation_details.h"
27 #include "content/browser/tab_contents/tab_contents.h" 28 #include "content/browser/tab_contents/tab_contents.h"
28 #include "content/common/content_notification_types.h" 29 #include "content/common/content_notification_types.h"
29 #include "content/common/notification_details.h" 30 #include "content/common/notification_details.h"
30 #include "content/common/notification_source.h" 31 #include "content/common/notification_source.h"
31 #include "webkit/plugins/webplugininfo.h" 32 #include "webkit/plugins/webplugininfo.h"
32 33
33 namespace { 34 namespace {
34 35
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 RenderProcessHost* rph = tab->render_view_host()->process(); 366 RenderProcessHost* rph = tab->render_view_host()->process();
366 if (registrar_.IsRegistered(this, 367 if (registrar_.IsRegistered(this,
367 content::NOTIFICATION_RENDERER_PROCESS_CLOSED, 368 content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
368 Source<RenderProcessHost>(rph))) { 369 Source<RenderProcessHost>(rph))) {
369 registrar_.Remove(this, content::NOTIFICATION_RENDERER_PROCESS_CLOSED, 370 registrar_.Remove(this, content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
370 Source<RenderProcessHost>(rph)); 371 Source<RenderProcessHost>(rph));
371 } 372 }
372 } 373 }
373 374
374 } // namespace printing 375 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698