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 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_BROWSER_CONTEXT_H_ |
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_BROWSER_CONTEXT_H_ | 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_BROWSER_CONTEXT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/shell/browser/shell_browser_context.h" | 9 #include "content/shell/browser/shell_browser_context.h" |
10 | 10 |
11 namespace net { | 11 namespace net { |
12 class NetLog; | 12 class NetLog; |
13 } | 13 } |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class DownloadManagerDelegate; | 17 class DownloadManagerDelegate; |
18 | 18 |
19 class LayoutTestBrowserContext : public ShellBrowserContext { | 19 class LayoutTestBrowserContext : public ShellBrowserContext { |
20 public: | 20 public: |
21 LayoutTestBrowserContext(bool off_the_record, net::NetLog* net_log); | 21 LayoutTestBrowserContext(bool off_the_record, net::NetLog* net_log); |
22 virtual ~LayoutTestBrowserContext(); | 22 ~LayoutTestBrowserContext() override; |
23 | 23 |
24 // BrowserContext implementation. | 24 // BrowserContext implementation. |
25 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 25 DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
26 | 26 |
27 protected: | 27 protected: |
28 virtual ShellURLRequestContextGetter* CreateURLRequestContextGetter( | 28 ShellURLRequestContextGetter* CreateURLRequestContextGetter( |
29 ProtocolHandlerMap* protocol_handlers, | 29 ProtocolHandlerMap* protocol_handlers, |
30 URLRequestInterceptorScopedVector request_interceptors) override; | 30 URLRequestInterceptorScopedVector request_interceptors) override; |
31 | 31 |
32 private: | 32 private: |
33 DISALLOW_COPY_AND_ASSIGN(LayoutTestBrowserContext); | 33 DISALLOW_COPY_AND_ASSIGN(LayoutTestBrowserContext); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace content | 36 } // namespace content |
37 | 37 |
38 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_BROWSER_CONTEXT_H_ | 38 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_BROWSER_CONTEXT_H_ |
OLD | NEW |