OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/web/public/test/fakes/test_browser_state.h" | 5 #include "ios/web/public/test/fakes/test_browser_state.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/single_thread_task_runner.h" |
8 #include "ios/web/public/web_thread.h" | 9 #include "ios/web/public/web_thread.h" |
9 #include "ios/web/test/test_url_constants.h" | 10 #include "ios/web/test/test_url_constants.h" |
10 #include "ios/web/webui/url_data_manager_ios_backend.h" | 11 #include "ios/web/webui/url_data_manager_ios_backend.h" |
11 #include "net/url_request/url_request_context.h" | 12 #include "net/url_request/url_request_context.h" |
12 #include "net/url_request/url_request_context_getter.h" | 13 #include "net/url_request/url_request_context_getter.h" |
13 #include "net/url_request/url_request_job_factory_impl.h" | 14 #include "net/url_request/url_request_job_factory_impl.h" |
14 #include "net/url_request/url_request_test_util.h" | 15 #include "net/url_request/url_request_test_util.h" |
15 | 16 |
16 namespace web { | 17 namespace web { |
17 | 18 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 if (!request_context_) | 59 if (!request_context_) |
59 request_context_ = new TestContextURLRequestContextGetter(this); | 60 request_context_ = new TestContextURLRequestContextGetter(this); |
60 return request_context_.get(); | 61 return request_context_.get(); |
61 } | 62 } |
62 | 63 |
63 void TestBrowserState::SetOffTheRecord(bool flag) { | 64 void TestBrowserState::SetOffTheRecord(bool flag) { |
64 is_off_the_record_ = flag; | 65 is_off_the_record_ = flag; |
65 } | 66 } |
66 | 67 |
67 } // namespace web | 68 } // namespace web |
OLD | NEW |