| OLD | NEW |
| 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/profiles/profile_io_data.h" | 5 #include "chrome/browser/profiles/profile_io_data.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 } | 206 } |
| 207 | 207 |
| 208 class DebugDevToolsInterceptor : public net::URLRequestInterceptor { | 208 class DebugDevToolsInterceptor : public net::URLRequestInterceptor { |
| 209 public: | 209 public: |
| 210 DebugDevToolsInterceptor() {} | 210 DebugDevToolsInterceptor() {} |
| 211 virtual ~DebugDevToolsInterceptor() {} | 211 virtual ~DebugDevToolsInterceptor() {} |
| 212 | 212 |
| 213 // net::URLRequestInterceptor implementation. | 213 // net::URLRequestInterceptor implementation. |
| 214 virtual net::URLRequestJob* MaybeInterceptRequest( | 214 virtual net::URLRequestJob* MaybeInterceptRequest( |
| 215 net::URLRequest* request, | 215 net::URLRequest* request, |
| 216 net::NetworkDelegate* network_delegate) const OVERRIDE { | 216 net::NetworkDelegate* network_delegate) const override { |
| 217 base::FilePath path; | 217 base::FilePath path; |
| 218 if (IsSupportedDevToolsURL(request->url(), &path)) | 218 if (IsSupportedDevToolsURL(request->url(), &path)) |
| 219 return new net::URLRequestFileJob( | 219 return new net::URLRequestFileJob( |
| 220 request, network_delegate, path, | 220 request, network_delegate, path, |
| 221 content::BrowserThread::GetBlockingPool()-> | 221 content::BrowserThread::GetBlockingPool()-> |
| 222 GetTaskRunnerWithShutdownBehavior( | 222 GetTaskRunnerWithShutdownBehavior( |
| 223 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); | 223 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); |
| 224 | 224 |
| 225 return NULL; | 225 return NULL; |
| 226 } | 226 } |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 void ProfileIOData::SetCookieSettingsForTesting( | 1285 void ProfileIOData::SetCookieSettingsForTesting( |
| 1286 CookieSettings* cookie_settings) { | 1286 CookieSettings* cookie_settings) { |
| 1287 DCHECK(!cookie_settings_.get()); | 1287 DCHECK(!cookie_settings_.get()); |
| 1288 cookie_settings_ = cookie_settings; | 1288 cookie_settings_ = cookie_settings; |
| 1289 } | 1289 } |
| 1290 | 1290 |
| 1291 void ProfileIOData::set_signin_names_for_testing( | 1291 void ProfileIOData::set_signin_names_for_testing( |
| 1292 SigninNamesOnIOThread* signin_names) { | 1292 SigninNamesOnIOThread* signin_names) { |
| 1293 signin_names_.reset(signin_names); | 1293 signin_names_.reset(signin_names); |
| 1294 } | 1294 } |
| OLD | NEW |