OLD | NEW |
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 17 matching lines...) Expand all Loading... |
28 public: | 28 public: |
29 ShellBrowserContext(bool off_the_record, net::NetLog* net_log); | 29 ShellBrowserContext(bool off_the_record, net::NetLog* net_log); |
30 virtual ~ShellBrowserContext(); | 30 virtual ~ShellBrowserContext(); |
31 | 31 |
32 void set_guest_manager_for_testing( | 32 void set_guest_manager_for_testing( |
33 BrowserPluginGuestManager* guest_manager) { | 33 BrowserPluginGuestManager* guest_manager) { |
34 guest_manager_ = guest_manager; | 34 guest_manager_ = guest_manager; |
35 } | 35 } |
36 | 36 |
37 // BrowserContext implementation. | 37 // BrowserContext implementation. |
38 virtual base::FilePath GetPath() const OVERRIDE; | 38 virtual base::FilePath GetPath() const override; |
39 virtual bool IsOffTheRecord() const OVERRIDE; | 39 virtual bool IsOffTheRecord() const override; |
40 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() OVERRIDE; | 40 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
41 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 41 virtual net::URLRequestContextGetter* GetRequestContext() override; |
42 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 42 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
43 int renderer_child_id) OVERRIDE; | 43 int renderer_child_id) override; |
44 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 44 virtual net::URLRequestContextGetter* GetMediaRequestContext() override; |
45 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 45 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
46 int renderer_child_id) OVERRIDE; | 46 int renderer_child_id) override; |
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 net::URLRequestContextGetter* CreateRequestContext( | 57 net::URLRequestContextGetter* CreateRequestContext( |
58 ProtocolHandlerMap* protocol_handlers, | 58 ProtocolHandlerMap* protocol_handlers, |
59 URLRequestInterceptorScopedVector request_interceptors); | 59 URLRequestInterceptorScopedVector request_interceptors); |
60 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 60 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
61 const base::FilePath& partition_path, | 61 const base::FilePath& partition_path, |
62 bool in_memory, | 62 bool in_memory, |
63 ProtocolHandlerMap* protocol_handlers, | 63 ProtocolHandlerMap* protocol_handlers, |
64 URLRequestInterceptorScopedVector request_interceptors); | 64 URLRequestInterceptorScopedVector request_interceptors); |
65 | 65 |
(...skipping 12 matching lines...) Expand all Loading... |
78 scoped_ptr<ShellResourceContext> resource_context_; | 78 scoped_ptr<ShellResourceContext> resource_context_; |
79 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_; | 79 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_; |
80 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; | 80 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 82 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace content | 85 } // namespace content |
86 | 86 |
87 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ | 87 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ |
OLD | NEW |