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

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

Issue 9566001: Hide MHTMLGenerationManager from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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) 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/browser_process_impl.h" 5 #include "chrome/browser/browser_process_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "chrome/common/chrome_notification_types.h" 60 #include "chrome/common/chrome_notification_types.h"
61 #include "chrome/common/chrome_paths.h" 61 #include "chrome/common/chrome_paths.h"
62 #include "chrome/common/chrome_switches.h" 62 #include "chrome/common/chrome_switches.h"
63 #include "chrome/common/extensions/extension_l10n_util.h" 63 #include "chrome/common/extensions/extension_l10n_util.h"
64 #include "chrome/common/extensions/extension_resource.h" 64 #include "chrome/common/extensions/extension_resource.h"
65 #include "chrome/common/json_pref_store.h" 65 #include "chrome/common/json_pref_store.h"
66 #include "chrome/common/pref_names.h" 66 #include "chrome/common/pref_names.h"
67 #include "chrome/common/switch_utils.h" 67 #include "chrome/common/switch_utils.h"
68 #include "chrome/common/url_constants.h" 68 #include "chrome/common/url_constants.h"
69 #include "chrome/installer/util/google_update_constants.h" 69 #include "chrome/installer/util/google_update_constants.h"
70 #include "content/browser/download/mhtml_generation_manager.h"
71 #include "content/browser/net/browser_online_state_observer.h" 70 #include "content/browser/net/browser_online_state_observer.h"
72 #include "content/browser/renderer_host/resource_dispatcher_host.h" 71 #include "content/browser/renderer_host/resource_dispatcher_host.h"
73 #include "content/public/browser/browser_thread.h" 72 #include "content/public/browser/browser_thread.h"
74 #include "content/public/browser/child_process_security_policy.h" 73 #include "content/public/browser/child_process_security_policy.h"
75 #include "content/public/browser/notification_details.h" 74 #include "content/public/browser/notification_details.h"
76 #include "content/public/browser/plugin_service.h" 75 #include "content/public/browser/plugin_service.h"
77 #include "content/public/browser/render_process_host.h" 76 #include "content/public/browser/render_process_host.h"
78 #include "net/socket/client_socket_pool_manager.h" 77 #include "net/socket/client_socket_pool_manager.h"
79 #include "net/url_request/url_request_context_getter.h" 78 #include "net/url_request/url_request_context_getter.h"
80 #include "ui/base/clipboard/clipboard.h" 79 #include "ui/base/clipboard/clipboard.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 return net_log_.get(); 587 return net_log_.get();
589 } 588 }
590 589
591 prerender::PrerenderTracker* BrowserProcessImpl::prerender_tracker() { 590 prerender::PrerenderTracker* BrowserProcessImpl::prerender_tracker() {
592 if (!prerender_tracker_.get()) 591 if (!prerender_tracker_.get())
593 prerender_tracker_.reset(new prerender::PrerenderTracker); 592 prerender_tracker_.reset(new prerender::PrerenderTracker);
594 593
595 return prerender_tracker_.get(); 594 return prerender_tracker_.get();
596 } 595 }
597 596
598 MHTMLGenerationManager* BrowserProcessImpl::mhtml_generation_manager() {
599 if (!mhtml_generation_manager_.get())
600 mhtml_generation_manager_ = new MHTMLGenerationManager();
601
602 return mhtml_generation_manager_.get();
603 }
604
605 ComponentUpdateService* BrowserProcessImpl::component_updater() { 597 ComponentUpdateService* BrowserProcessImpl::component_updater() {
606 #if defined(OS_CHROMEOS) 598 #if defined(OS_CHROMEOS)
607 return NULL; 599 return NULL;
608 #else 600 #else
609 if (!component_updater_.get()) { 601 if (!component_updater_.get()) {
610 ComponentUpdateService::Configurator* configurator = 602 ComponentUpdateService::Configurator* configurator =
611 MakeChromeComponentUpdaterConfigurator( 603 MakeChromeComponentUpdaterConfigurator(
612 CommandLine::ForCurrentProcess(), 604 CommandLine::ForCurrentProcess(),
613 io_thread()->system_url_request_context_getter()); 605 io_thread()->system_url_request_context_getter());
614 // Creating the component updater does not do anything, components 606 // Creating the component updater does not do anything, components
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 } 877 }
886 878
887 void BrowserProcessImpl::OnAutoupdateTimer() { 879 void BrowserProcessImpl::OnAutoupdateTimer() {
888 if (CanAutorestartForUpdate()) { 880 if (CanAutorestartForUpdate()) {
889 DLOG(WARNING) << "Detected update. Restarting browser."; 881 DLOG(WARNING) << "Detected update. Restarting browser.";
890 RestartBackgroundInstance(); 882 RestartBackgroundInstance();
891 } 883 }
892 } 884 }
893 885
894 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 886 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698