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

Side by Side Diff: content/shell/browser/shell_browser_context.h

Issue 615583003: Introduce NetworkDelegate's implementation in extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | content/shell/browser/shell_browser_context.cc » ('j') | extensions/DEPS » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_SHELL_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual net::URLRequestContextGetter* 47 virtual net::URLRequestContextGetter*
48 GetMediaRequestContextForStoragePartition( 48 GetMediaRequestContextForStoragePartition(
49 const base::FilePath& partition_path, 49 const base::FilePath& partition_path,
50 bool in_memory) OVERRIDE; 50 bool in_memory) OVERRIDE;
51 virtual ResourceContext* GetResourceContext() OVERRIDE; 51 virtual ResourceContext* GetResourceContext() OVERRIDE;
52 virtual BrowserPluginGuestManager* GetGuestManager() OVERRIDE; 52 virtual BrowserPluginGuestManager* GetGuestManager() OVERRIDE;
53 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 53 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
54 virtual PushMessagingService* GetPushMessagingService() OVERRIDE; 54 virtual PushMessagingService* GetPushMessagingService() OVERRIDE;
55 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE; 55 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE;
56 56
57 virtual content::ShellURLRequestContextGetter* CreateURLRequestContextGetter(
58 ProtocolHandlerMap* protocol_handlers,
59 URLRequestInterceptorScopedVector request_interceptors);
57 net::URLRequestContextGetter* CreateRequestContext( 60 net::URLRequestContextGetter* CreateRequestContext(
58 ProtocolHandlerMap* protocol_handlers, 61 ProtocolHandlerMap* protocol_handlers,
59 URLRequestInterceptorScopedVector request_interceptors); 62 URLRequestInterceptorScopedVector request_interceptors);
63
64 net::URLRequestContextGetter* CreateRequestContext(
65 ProtocolHandlerMap* protocol_handlers,
66 URLRequestInterceptorScopedVector request_interceptors,
67 net::NetworkDelegate* network_delegate);
68
60 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 69 net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
61 const base::FilePath& partition_path, 70 const base::FilePath& partition_path,
62 bool in_memory, 71 bool in_memory,
63 ProtocolHandlerMap* protocol_handlers, 72 ProtocolHandlerMap* protocol_handlers,
64 URLRequestInterceptorScopedVector request_interceptors); 73 URLRequestInterceptorScopedVector request_interceptors);
74 protected:
75 net::NetLog* net_log() { return net_log_; }
76 bool ignore_certificate_errors() { return ignore_certificate_errors_; }
65 77
66 private: 78 private:
67 class ShellResourceContext; 79 class ShellResourceContext;
68 80
69 // Performs initialization of the ShellBrowserContext while IO is still 81 // Performs initialization of the ShellBrowserContext while IO is still
70 // allowed on the current thread. 82 // allowed on the current thread.
71 void InitWhileIOAllowed(); 83 void InitWhileIOAllowed();
72 84
73 bool off_the_record_; 85 bool off_the_record_;
74 net::NetLog* net_log_; 86 net::NetLog* net_log_;
75 bool ignore_certificate_errors_; 87 bool ignore_certificate_errors_;
76 base::FilePath path_; 88 base::FilePath path_;
77 BrowserPluginGuestManager* guest_manager_; 89 BrowserPluginGuestManager* guest_manager_;
78 scoped_ptr<ShellResourceContext> resource_context_; 90 scoped_ptr<ShellResourceContext> resource_context_;
79 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_; 91 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_;
80 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; 92 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_;
81 93
82 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); 94 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext);
83 }; 95 };
84 96
85 } // namespace content 97 } // namespace content
86 98
87 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 99 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/browser/shell_browser_context.cc » ('j') | extensions/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698