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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 2217753004: Move the call to ResourceDispatcherHostCreated from the ctor of the ResourceDispatcherHostImpl clas… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | content/browser/loader/resource_dispatcher_host_impl.cc » ('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 "content/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 #if defined(OS_WIN) 1285 #if defined(OS_WIN)
1286 UMA_HISTOGRAM_BOOLEAN("Windows.Win32kRendererLockdown", 1286 UMA_HISTOGRAM_BOOLEAN("Windows.Win32kRendererLockdown",
1287 IsWin32kRendererLockdownEnabled()); 1287 IsWin32kRendererLockdownEnabled());
1288 #endif 1288 #endif
1289 1289
1290 // RDH needs the IO thread to be created 1290 // RDH needs the IO thread to be created
1291 { 1291 {
1292 TRACE_EVENT0("startup", 1292 TRACE_EVENT0("startup",
1293 "BrowserMainLoop::BrowserThreadsStarted:InitResourceDispatcherHost"); 1293 "BrowserMainLoop::BrowserThreadsStarted:InitResourceDispatcherHost");
1294 resource_dispatcher_host_.reset(new ResourceDispatcherHostImpl()); 1294 resource_dispatcher_host_.reset(new ResourceDispatcherHostImpl());
1295 GetContentClient()->browser()->ResourceDispatcherHostCreated();
1295 1296
1296 loader_delegate_.reset(new LoaderDelegateImpl()); 1297 loader_delegate_.reset(new LoaderDelegateImpl());
1297 resource_dispatcher_host_->SetLoaderDelegate(loader_delegate_.get()); 1298 resource_dispatcher_host_->SetLoaderDelegate(loader_delegate_.get());
1298 } 1299 }
1299 1300
1300 // MediaStreamManager needs the IO thread to be created. 1301 // MediaStreamManager needs the IO thread to be created.
1301 { 1302 {
1302 TRACE_EVENT0("startup", 1303 TRACE_EVENT0("startup",
1303 "BrowserMainLoop::BrowserThreadsStarted:InitMediaStreamManager"); 1304 "BrowserMainLoop::BrowserThreadsStarted:InitMediaStreamManager");
1304 media_stream_manager_.reset(new MediaStreamManager(audio_manager_.get())); 1305 media_stream_manager_.reset(new MediaStreamManager(audio_manager_.get()));
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = 1515 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner =
1515 audio_thread_->task_runner(); 1516 audio_thread_->task_runner();
1516 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), 1517 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner),
1517 std::move(worker_task_runner), 1518 std::move(worker_task_runner),
1518 MediaInternals::GetInstance()); 1519 MediaInternals::GetInstance());
1519 } 1520 }
1520 CHECK(audio_manager_); 1521 CHECK(audio_manager_);
1521 } 1522 }
1522 1523
1523 } // namespace content 1524 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698