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

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

Issue 602593004: Chromecast: disables downloads from the Chromecast shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting Created 6 years, 2 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/chromecast.gyp ('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
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_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_ 5 #ifndef CHROMECAST_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_
6 #define CHROMECAST_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_ 6 #define CHROMECAST_SHELL_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 URLRequestContextFactory; 17 class URLRequestContextFactory;
17 18
18 // Chromecast does not currently support multiple profiles. So there is a 19 // Chromecast does not currently support multiple profiles. So there is a
19 // single BrowserContext for all chromecast renderers. 20 // single BrowserContext for all chromecast renderers.
20 // There is no support for PartitionStorage. 21 // There is no support for PartitionStorage.
21 class CastBrowserContext : public content::BrowserContext { 22 class CastBrowserContext : public content::BrowserContext {
22 public: 23 public:
23 explicit CastBrowserContext( 24 explicit CastBrowserContext(
24 URLRequestContextFactory* url_request_context_factory); 25 URLRequestContextFactory* url_request_context_factory);
25 virtual ~CastBrowserContext(); 26 virtual ~CastBrowserContext();
(...skipping 22 matching lines...) Expand all
48 private: 49 private:
49 class CastResourceContext; 50 class CastResourceContext;
50 51
51 // Performs initialization of the CastBrowserContext while IO is still 52 // Performs initialization of the CastBrowserContext while IO is still
52 // allowed on the current thread. 53 // allowed on the current thread.
53 void InitWhileIOAllowed(); 54 void InitWhileIOAllowed();
54 55
55 URLRequestContextFactory* const url_request_context_factory_; 56 URLRequestContextFactory* const url_request_context_factory_;
56 base::FilePath path_; 57 base::FilePath path_;
57 scoped_ptr<CastResourceContext> resource_context_; 58 scoped_ptr<CastResourceContext> resource_context_;
59 scoped_ptr<CastDownloadManagerDelegate> download_manager_delegate_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(CastBrowserContext); 61 DISALLOW_COPY_AND_ASSIGN(CastBrowserContext);
60 }; 62 };
61 63
62 } // namespace shell 64 } // namespace shell
63 } // namespace chromecast 65 } // namespace chromecast
64 66
65 #endif // CHROMECAST_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_ 67 #endif // CHROMECAST_SHELL_BROWSER_CAST_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « chromecast/chromecast.gyp ('k') | chromecast/shell/browser/cast_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698