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

Side by Side Diff: content/shell/browser/layout_test/layout_test_url_request_context_getter.h

Issue 651883002: Content Shell: Introduce LayoutTestURLRequestContextGetter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@LayoutTestBrowserMainParts
Patch Set: Fix. Created 6 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_URL_REQUEST_CONTEXT_GETTER _H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_URL_REQUEST_CONTEXT_GETTER _H_
7
8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/browser/content_browser_client.h"
13 #include "content/shell/browser/shell_url_request_context_getter.h"
14 #include "net/url_request/url_request_job_factory.h"
15
16 namespace base {
17 class MessageLoop;
18 }
19
20 namespace net {
21 class HostResolver;
22 class MappedHostResolver;
23 class NetworkDelegate;
24 class NetLog;
25 class ProxyConfigService;
26 class URLRequestContextStorage;
27 }
28
29 namespace content {
30
31 class LayoutTestURLRequestContextGetter : public ShellURLRequestContextGetter {
32 public:
33 LayoutTestURLRequestContextGetter(
34 bool ignore_certificate_errors,
35 const base::FilePath& base_path,
36 base::MessageLoop* io_loop,
37 base::MessageLoop* file_loop,
38 ProtocolHandlerMap* protocol_handlers,
39 URLRequestInterceptorScopedVector request_interceptors,
40 net::NetLog* net_log);
41
42 protected:
43 virtual ~LayoutTestURLRequestContextGetter();
44
45 // ShellURLRequestContextGetter implementation.
46 virtual net::NetworkDelegate* CreateNetworkDelegate() override;
47 virtual net::ProxyConfigService* GetProxyConfigService() override;
48 virtual net::ProxyService* GetProxyService() override;
49
50 private:
51 DISALLOW_COPY_AND_ASSIGN(LayoutTestURLRequestContextGetter);
52 };
53
54 } // namespace content
55
56 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_URL_REQUEST_CONTEXT_GET TER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698