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

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

Issue 9433006: Remove GetAudioManager and GetMediaStreamManager from ResourceContext. The reason is the content mo… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 10 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
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #include "chrome/common/url_constants.h" 69 #include "chrome/common/url_constants.h"
70 #include "chrome/installer/util/google_update_constants.h" 70 #include "chrome/installer/util/google_update_constants.h"
71 #include "content/browser/download/mhtml_generation_manager.h" 71 #include "content/browser/download/mhtml_generation_manager.h"
72 #include "content/browser/net/browser_online_state_observer.h" 72 #include "content/browser/net/browser_online_state_observer.h"
73 #include "content/browser/renderer_host/resource_dispatcher_host.h" 73 #include "content/browser/renderer_host/resource_dispatcher_host.h"
74 #include "content/public/browser/browser_thread.h" 74 #include "content/public/browser/browser_thread.h"
75 #include "content/public/browser/child_process_security_policy.h" 75 #include "content/public/browser/child_process_security_policy.h"
76 #include "content/public/browser/notification_details.h" 76 #include "content/public/browser/notification_details.h"
77 #include "content/public/browser/plugin_service.h" 77 #include "content/public/browser/plugin_service.h"
78 #include "content/public/browser/render_process_host.h" 78 #include "content/public/browser/render_process_host.h"
79 #include "media/audio/audio_manager.h"
80 #include "net/socket/client_socket_pool_manager.h" 79 #include "net/socket/client_socket_pool_manager.h"
81 #include "net/url_request/url_request_context_getter.h" 80 #include "net/url_request/url_request_context_getter.h"
82 #include "ui/base/clipboard/clipboard.h" 81 #include "ui/base/clipboard/clipboard.h"
83 #include "ui/base/l10n/l10n_util.h" 82 #include "ui/base/l10n/l10n_util.h"
84 83
85 #if defined(OS_WIN) 84 #if defined(OS_WIN)
86 #include "ui/views/focus/view_storage.h" 85 #include "ui/views/focus/view_storage.h"
87 #elif defined(OS_MACOSX) 86 #elif defined(OS_MACOSX)
88 #include "chrome/browser/chrome_browser_main_mac.h" 87 #include "chrome/browser/chrome_browser_main_mac.h"
89 #endif 88 #endif
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 // either. 626 // either.
628 return NULL; 627 return NULL;
629 #else 628 #else
630 if (!crl_set_fetcher_.get()) { 629 if (!crl_set_fetcher_.get()) {
631 crl_set_fetcher_ = new CRLSetFetcher(); 630 crl_set_fetcher_ = new CRLSetFetcher();
632 } 631 }
633 return crl_set_fetcher_.get(); 632 return crl_set_fetcher_.get();
634 #endif 633 #endif
635 } 634 }
636 635
637 AudioManager* BrowserProcessImpl::audio_manager() {
638 DCHECK(CalledOnValidThread());
639 if (!audio_manager_.get())
640 audio_manager_.reset(AudioManager::Create());
641
642 return audio_manager_.get();
643 }
644
645 void BrowserProcessImpl::ResourceDispatcherHostCreated() { 636 void BrowserProcessImpl::ResourceDispatcherHostCreated() {
646 // UserScriptListener will delete itself. 637 // UserScriptListener will delete itself.
647 ResourceDispatcherHost* rdh = ResourceDispatcherHost::Get(); 638 ResourceDispatcherHost* rdh = ResourceDispatcherHost::Get();
648 rdh->AddResourceQueueDelegate(new UserScriptListener()); 639 rdh->AddResourceQueueDelegate(new UserScriptListener());
649 640
650 resource_dispatcher_host_delegate_.reset( 641 resource_dispatcher_host_delegate_.reset(
651 new ChromeResourceDispatcherHostDelegate(rdh, prerender_tracker())); 642 new ChromeResourceDispatcherHostDelegate(rdh, prerender_tracker()));
652 rdh->set_delegate(resource_dispatcher_host_delegate_.get()); 643 rdh->set_delegate(resource_dispatcher_host_delegate_.get());
653 644
654 pref_change_registrar_.Add(prefs::kAllowCrossOriginAuthPrompt, this); 645 pref_change_registrar_.Add(prefs::kAllowCrossOriginAuthPrompt, this);
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 } 888 }
898 889
899 void BrowserProcessImpl::OnAutoupdateTimer() { 890 void BrowserProcessImpl::OnAutoupdateTimer() {
900 if (CanAutorestartForUpdate()) { 891 if (CanAutorestartForUpdate()) {
901 DLOG(WARNING) << "Detected update. Restarting browser."; 892 DLOG(WARNING) << "Detected update. Restarting browser.";
902 RestartBackgroundInstance(); 893 RestartBackgroundInstance();
903 } 894 }
904 } 895 }
905 896
906 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 897 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698