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

Side by Side Diff: content/shell/shell_browser_context.cc

Issue 9296012: Hooked up NetLog to DownloadItem, DownloadFile, and FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed event type name for Download to refer to URL Request 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
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/shell/shell_browser_context.h" 5 #include "content/shell/shell_browser_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 ssl_host_state_.reset(new SSLHostState()); 135 ssl_host_state_.reset(new SSLHostState());
136 return ssl_host_state_.get(); 136 return ssl_host_state_.get();
137 } 137 }
138 138
139 DownloadManager* ShellBrowserContext::GetDownloadManager() { 139 DownloadManager* ShellBrowserContext::GetDownloadManager() {
140 if (!download_manager_.get()) { 140 if (!download_manager_.get()) {
141 download_status_updater_.reset(new DownloadStatusUpdater()); 141 download_status_updater_.reset(new DownloadStatusUpdater());
142 142
143 download_manager_delegate_ = new ShellDownloadManagerDelegate(); 143 download_manager_delegate_ = new ShellDownloadManagerDelegate();
144 download_manager_ = new DownloadManagerImpl(download_manager_delegate_, 144 download_manager_ = new DownloadManagerImpl(download_manager_delegate_,
145 download_status_updater_.get()); 145 download_status_updater_.get(),
146 NULL);
146 download_manager_delegate_->SetDownloadManager(download_manager_.get()); 147 download_manager_delegate_->SetDownloadManager(download_manager_.get());
147 download_manager_->Init(this); 148 download_manager_->Init(this);
148 } 149 }
149 return download_manager_.get(); 150 return download_manager_.get();
150 } 151 }
151 152
152 net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() { 153 net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() {
153 if (!url_request_getter_) { 154 if (!url_request_getter_) {
154 url_request_getter_ = new ShellURLRequestContextGetter( 155 url_request_getter_ = new ShellURLRequestContextGetter(
155 GetPath(), 156 GetPath(),
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 base::Bind( 268 base::Bind(
268 &ChromeAppCacheService::InitializeOnIOThread, 269 &ChromeAppCacheService::InitializeOnIOThread,
269 appcache_service_.get(), 270 appcache_service_.get(),
270 IsOffTheRecord() 271 IsOffTheRecord()
271 ? FilePath() : GetPath().Append(FILE_PATH_LITERAL("AppCache")), 272 ? FilePath() : GetPath().Append(FILE_PATH_LITERAL("AppCache")),
272 &GetResourceContext(), 273 &GetResourceContext(),
273 special_storage_policy)); 274 special_storage_policy));
274 } 275 }
275 276
276 } // namespace content 277 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698