| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/net/ios_chrome_url_request_context_getter.h" | 5 #include "ios/chrome/browser/net/ios_chrome_url_request_context_getter.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 10 #include "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h" | 11 #include "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h" |
| 11 #include "ios/chrome/browser/ios_chrome_io_thread.h" | 12 #include "ios/chrome/browser/ios_chrome_io_thread.h" |
| 12 #include "ios/web/public/web_thread.h" | 13 #include "ios/web/public/web_thread.h" |
| 13 #include "net/cookies/cookie_store.h" | 14 #include "net/cookies/cookie_store.h" |
| 14 | 15 |
| 15 class IOSChromeURLRequestContextFactory { | 16 class IOSChromeURLRequestContextFactory { |
| 16 public: | 17 public: |
| 17 IOSChromeURLRequestContextFactory() {} | 18 IOSChromeURLRequestContextFactory() {} |
| 18 virtual ~IOSChromeURLRequestContextFactory() {} | 19 virtual ~IOSChromeURLRequestContextFactory() {} |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 131 |
| 131 // static | 132 // static |
| 132 IOSChromeURLRequestContextGetter* | 133 IOSChromeURLRequestContextGetter* |
| 133 IOSChromeURLRequestContextGetter::CreateForIsolatedApp( | 134 IOSChromeURLRequestContextGetter::CreateForIsolatedApp( |
| 134 net::URLRequestContextGetter* main_context, | 135 net::URLRequestContextGetter* main_context, |
| 135 const ChromeBrowserStateIOData* io_data, | 136 const ChromeBrowserStateIOData* io_data, |
| 136 const base::FilePath& partition_path) { | 137 const base::FilePath& partition_path) { |
| 137 return new IOSChromeURLRequestContextGetter(make_scoped_ptr( | 138 return new IOSChromeURLRequestContextGetter(make_scoped_ptr( |
| 138 new FactoryForIsolatedApp(io_data, partition_path, main_context))); | 139 new FactoryForIsolatedApp(io_data, partition_path, main_context))); |
| 139 } | 140 } |
| OLD | NEW |