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

Side by Side Diff: chromecast/shell/browser/cast_browser_context.h

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modified to use aura and ozone for cast shell. Created 6 years, 5 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 | « chromecast/shell/browser/DEPS ('k') | chromecast/shell/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROMECAST_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_
6 #define CHROMECAST_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_
7
8 #include "base/files/file_path.h"
9 #include "content/public/browser/browser_context.h"
10 #include "content/public/browser/content_browser_client.h"
11
12 namespace chromecast {
13 namespace shell {
14
15 class URLRequestContextFactory;
16
17 // Chromecast does not currently support multiple profiles. So there is a
18 // single BrowserContext for all chromecast renderers.
19 // There is no support for PartitionStorage.
20 class CastBrowserContext : public content::BrowserContext {
21 public:
22 explicit CastBrowserContext(
23 URLRequestContextFactory* url_request_context_factory);
24 virtual ~CastBrowserContext();
25
26 // BrowserContext implementation.
27 virtual base::FilePath GetPath() const OVERRIDE;
28 virtual bool IsOffTheRecord() const OVERRIDE;
29 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
30 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
31 int renderer_child_id) OVERRIDE;
32 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
33 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
34 int renderer_child_id) OVERRIDE;
35 virtual net::URLRequestContextGetter*
36 GetMediaRequestContextForStoragePartition(
37 const base::FilePath& partition_path,
38 bool in_memory) OVERRIDE;
39 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
40 virtual content::DownloadManagerDelegate*
41 GetDownloadManagerDelegate() OVERRIDE;
42 virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE;
43 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
44 virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE;
45
46 private:
47 class CastResourceContext;
48
49 // Performs initialization of the CastBrowserContext while IO is still
50 // allowed on the current thread.
51 void InitWhileIOAllowed();
52
53 URLRequestContextFactory* const url_request_context_factory_;
54 base::FilePath path_;
55 scoped_ptr<CastResourceContext> resource_context_;
56
57 DISALLOW_COPY_AND_ASSIGN(CastBrowserContext);
58 };
59
60 } // namespace shell
61 } // namespace chromecast
62
63 #endif // CHROMECAST_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « chromecast/shell/browser/DEPS ('k') | chromecast/shell/browser/cast_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698