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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
13 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/content_browser_client.h" |
14 #include "content/public/browser/resource_context.h" | 14 #include "content/public/browser/resource_context.h" |
15 #include "content/shell/browser/shell_url_request_context_getter.h" | 15 #include "content/shell/browser/shell_url_request_context_getter.h" |
16 #include "net/url_request/url_request_job_factory.h" | 16 #include "net/url_request/url_request_job_factory.h" |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 class NetLog; | 19 class NetLog; |
20 } | 20 } |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
24 class DownloadManagerDelegate; | 24 class DownloadManagerDelegate; |
25 class ShellDownloadManagerDelegate; | 25 class ShellDownloadManagerDelegate; |
| 26 class ZoomLevelDelegate; |
26 | 27 |
27 class ShellBrowserContext : public BrowserContext { | 28 class ShellBrowserContext : public BrowserContext { |
28 public: | 29 public: |
29 ShellBrowserContext(bool off_the_record, net::NetLog* net_log); | 30 ShellBrowserContext(bool off_the_record, net::NetLog* net_log); |
30 ~ShellBrowserContext() override; | 31 ~ShellBrowserContext() override; |
31 | 32 |
32 void set_guest_manager_for_testing( | 33 void set_guest_manager_for_testing( |
33 BrowserPluginGuestManager* guest_manager) { | 34 BrowserPluginGuestManager* guest_manager) { |
34 guest_manager_ = guest_manager; | 35 guest_manager_ = guest_manager; |
35 } | 36 } |
36 | 37 |
37 // BrowserContext implementation. | 38 // BrowserContext implementation. |
38 base::FilePath GetPath() const override; | 39 base::FilePath GetPath() const override; |
| 40 scoped_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( |
| 41 const base::FilePath& partition_path) override; |
39 bool IsOffTheRecord() const override; | 42 bool IsOffTheRecord() const override; |
40 DownloadManagerDelegate* GetDownloadManagerDelegate() override; | 43 DownloadManagerDelegate* GetDownloadManagerDelegate() override; |
41 net::URLRequestContextGetter* GetRequestContext() override; | 44 net::URLRequestContextGetter* GetRequestContext() override; |
42 net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 45 net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
43 int renderer_child_id) override; | 46 int renderer_child_id) override; |
44 net::URLRequestContextGetter* GetMediaRequestContext() override; | 47 net::URLRequestContextGetter* GetMediaRequestContext() override; |
45 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 48 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
46 int renderer_child_id) override; | 49 int renderer_child_id) override; |
47 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( | 50 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( |
48 const base::FilePath& partition_path, | 51 const base::FilePath& partition_path, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 base::FilePath path_; | 116 base::FilePath path_; |
114 BrowserPluginGuestManager* guest_manager_; | 117 BrowserPluginGuestManager* guest_manager_; |
115 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; | 118 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; |
116 | 119 |
117 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 120 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
118 }; | 121 }; |
119 | 122 |
120 } // namespace content | 123 } // namespace content |
121 | 124 |
122 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ | 125 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ |
OLD | NEW |