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

Side by Side Diff: chromecast/browser/cast_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
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | chromecast/browser/cast_browser_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_
6 #define CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_ 6 #define CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/public/browser/browser_context.h" 10 #include "content/public/browser/browser_context.h"
11 #include "content/public/browser/content_browser_client.h" 11 #include "content/public/browser/content_browser_client.h"
12 12
13 namespace chromecast { 13 namespace chromecast {
14 namespace shell { 14 namespace shell {
15 15
16 class CastDownloadManagerDelegate; 16 class CastDownloadManagerDelegate;
17 class URLRequestContextFactory; 17 class URLRequestContextFactory;
18 18
19 // Chromecast does not currently support multiple profiles. So there is a 19 // Chromecast does not currently support multiple profiles. So there is a
20 // single BrowserContext for all chromecast renderers. 20 // single BrowserContext for all chromecast renderers.
21 // There is no support for PartitionStorage. 21 // There is no support for PartitionStorage.
22 class CastBrowserContext : public content::BrowserContext { 22 class CastBrowserContext : public content::BrowserContext {
23 public: 23 public:
24 explicit CastBrowserContext( 24 explicit CastBrowserContext(
25 URLRequestContextFactory* url_request_context_factory); 25 URLRequestContextFactory* url_request_context_factory);
26 ~CastBrowserContext() override; 26 ~CastBrowserContext() override;
27 27
28 // BrowserContext implementation: 28 // BrowserContext implementation:
29 #if !defined(OS_ANDROID)
29 std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( 30 std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
30 const base::FilePath& partition_path) override; 31 const base::FilePath& partition_path) override;
32 #endif // !defined(OS_ANDROID)
31 base::FilePath GetPath() const override; 33 base::FilePath GetPath() const override;
32 bool IsOffTheRecord() const override; 34 bool IsOffTheRecord() const override;
33 content::ResourceContext* GetResourceContext() override; 35 content::ResourceContext* GetResourceContext() override;
34 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; 36 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
35 content::BrowserPluginGuestManager* GetGuestManager() override; 37 content::BrowserPluginGuestManager* GetGuestManager() override;
36 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override; 38 storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
37 content::PushMessagingService* GetPushMessagingService() override; 39 content::PushMessagingService* GetPushMessagingService() override;
38 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override; 40 content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
39 content::PermissionManager* GetPermissionManager() override; 41 content::PermissionManager* GetPermissionManager() override;
40 content::BackgroundSyncController* GetBackgroundSyncController() override; 42 content::BackgroundSyncController* GetBackgroundSyncController() override;
(...skipping 25 matching lines...) Expand all
66 std::unique_ptr<CastDownloadManagerDelegate> download_manager_delegate_; 68 std::unique_ptr<CastDownloadManagerDelegate> download_manager_delegate_;
67 std::unique_ptr<content::PermissionManager> permission_manager_; 69 std::unique_ptr<content::PermissionManager> permission_manager_;
68 70
69 DISALLOW_COPY_AND_ASSIGN(CastBrowserContext); 71 DISALLOW_COPY_AND_ASSIGN(CastBrowserContext);
70 }; 72 };
71 73
72 } // namespace shell 74 } // namespace shell
73 } // namespace chromecast 75 } // namespace chromecast
74 76
75 #endif // CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_ 77 #endif // CHROMECAST_BROWSER_CAST_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | chromecast/browser/cast_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698