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

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

Issue 2874833002: Don't compile code for desktop zoom or GuestViews on mobile platforms. (Closed)
Patch Set: Rebase. Created 3 years, 7 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
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 <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "content/public/browser/browser_context.h" 14 #include "content/public/browser/browser_context.h"
15 #include "content/public/browser/content_browser_client.h" 15 #include "content/public/browser/content_browser_client.h"
16 #include "content/public/browser/resource_context.h" 16 #include "content/public/browser/resource_context.h"
17 #include "content/shell/browser/shell_url_request_context_getter.h" 17 #include "content/shell/browser/shell_url_request_context_getter.h"
18 #include "net/url_request/url_request_job_factory.h" 18 #include "net/url_request/url_request_job_factory.h"
19 19
20 namespace net { 20 namespace net {
21 class NetLog; 21 class NetLog;
22 } 22 }
23 23
24 namespace content { 24 namespace content {
25 25
26 class BackgroundSyncController; 26 class BackgroundSyncController;
27 class DownloadManagerDelegate; 27 class DownloadManagerDelegate;
28 class PermissionManager; 28 class PermissionManager;
29 class ShellDownloadManagerDelegate; 29 class ShellDownloadManagerDelegate;
30 #if !defined(OS_ANDROID)
30 class ZoomLevelDelegate; 31 class ZoomLevelDelegate;
32 #endif // !defined(OS_ANDROID)
31 33
32 class ShellBrowserContext : public BrowserContext { 34 class ShellBrowserContext : public BrowserContext {
33 public: 35 public:
34 ShellBrowserContext(bool off_the_record, net::NetLog* net_log); 36 ShellBrowserContext(bool off_the_record, net::NetLog* net_log);
35 ~ShellBrowserContext() override; 37 ~ShellBrowserContext() override;
36 38
37 void set_guest_manager_for_testing( 39 void set_guest_manager_for_testing(
38 BrowserPluginGuestManager* guest_manager) { 40 BrowserPluginGuestManager* guest_manager) {
39 guest_manager_ = guest_manager; 41 guest_manager_ = guest_manager;
40 } 42 }
41 43
42 // BrowserContext implementation. 44 // BrowserContext implementation.
43 base::FilePath GetPath() const override; 45 base::FilePath GetPath() const override;
46 #if !defined(OS_ANDROID)
44 std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate( 47 std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate(
45 const base::FilePath& partition_path) override; 48 const base::FilePath& partition_path) override;
49 #endif // !defined(OS_ANDROID)
46 bool IsOffTheRecord() const override; 50 bool IsOffTheRecord() const override;
47 DownloadManagerDelegate* GetDownloadManagerDelegate() override; 51 DownloadManagerDelegate* GetDownloadManagerDelegate() override;
48 ResourceContext* GetResourceContext() override; 52 ResourceContext* GetResourceContext() override;
49 BrowserPluginGuestManager* GetGuestManager() override; 53 BrowserPluginGuestManager* GetGuestManager() override;
50 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 54 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
51 PushMessagingService* GetPushMessagingService() override; 55 PushMessagingService* GetPushMessagingService() override;
52 SSLHostStateDelegate* GetSSLHostStateDelegate() override; 56 SSLHostStateDelegate* GetSSLHostStateDelegate() override;
53 PermissionManager* GetPermissionManager() override; 57 PermissionManager* GetPermissionManager() override;
54 BackgroundSyncController* GetBackgroundSyncController() override; 58 BackgroundSyncController* GetBackgroundSyncController() override;
55 net::URLRequestContextGetter* CreateRequestContext( 59 net::URLRequestContextGetter* CreateRequestContext(
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 base::FilePath path_; 122 base::FilePath path_;
119 BrowserPluginGuestManager* guest_manager_; 123 BrowserPluginGuestManager* guest_manager_;
120 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; 124 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_;
121 125
122 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); 126 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext);
123 }; 127 };
124 128
125 } // namespace content 129 } // namespace content
126 130
127 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 131 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/test/test_browser_context.cc ('k') | content/shell/browser/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698