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

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

Issue 631203003: Fix bug: AppShell: CHECK failure in PeerConnection init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 "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"
(...skipping 16 matching lines...) Expand all
27 class ShellBrowserContext : public BrowserContext { 27 class ShellBrowserContext : public BrowserContext {
28 public: 28 public:
29 ShellBrowserContext(bool off_the_record, net::NetLog* net_log); 29 ShellBrowserContext(bool off_the_record, net::NetLog* net_log);
30 virtual ~ShellBrowserContext(); 30 virtual ~ShellBrowserContext();
31 31
32 void set_guest_manager_for_testing( 32 void set_guest_manager_for_testing(
33 BrowserPluginGuestManager* guest_manager) { 33 BrowserPluginGuestManager* guest_manager) {
34 guest_manager_ = guest_manager; 34 guest_manager_ = guest_manager;
35 } 35 }
36 36
37 void set_url_request_context_getter(ShellURLRequestContextGetter* getter);
James Cook 2014/10/07 16:24:54 I would make these methods protected to help empha
Xi Han 2014/10/07 19:29:53 Good idea. Make these methods protected, but leave
38 ShellURLRequestContextGetter* get_url_request_context_getter();
39
37 // BrowserContext implementation. 40 // BrowserContext implementation.
38 virtual base::FilePath GetPath() const override; 41 virtual base::FilePath GetPath() const override;
39 virtual bool IsOffTheRecord() const override; 42 virtual bool IsOffTheRecord() const override;
40 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() override; 43 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() override;
41 virtual net::URLRequestContextGetter* GetRequestContext() override; 44 virtual net::URLRequestContextGetter* GetRequestContext() override;
42 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 45 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
43 int renderer_child_id) override; 46 int renderer_child_id) override;
44 virtual net::URLRequestContextGetter* GetMediaRequestContext() override; 47 virtual net::URLRequestContextGetter* GetMediaRequestContext() override;
45 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 48 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
46 int renderer_child_id) override; 49 int renderer_child_id) override;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 scoped_ptr<ShellResourceContext> resource_context_; 81 scoped_ptr<ShellResourceContext> resource_context_;
79 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_; 82 scoped_ptr<ShellDownloadManagerDelegate> download_manager_delegate_;
80 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_; 83 scoped_refptr<ShellURLRequestContextGetter> url_request_getter_;
81 84
82 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); 85 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext);
83 }; 86 };
84 87
85 } // namespace content 88 } // namespace content
86 89
87 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_ 90 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/browser/shell_browser_context.cc » ('j') | content/shell/browser/shell_browser_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698