Initialize the fake BrowserProcess object.

This commit is contained in:
Cheng Zhao 2014-08-21 15:45:34 +08:00
parent d934526bb3
commit 8dcb3726f9
2 changed files with 8 additions and 1 deletions

View file

@ -7,6 +7,8 @@
#include "brightray/browser/browser_context.h"
class BrowserProcess;
namespace atom {
class AtomURLRequestJobFactory;
@ -28,6 +30,9 @@ class AtomBrowserContext : public brightray::BrowserContext {
content::ProtocolHandlerScopedVector* interceptors) OVERRIDE;
private:
// A fake BrowserProcess object that used to feed the source code from chrome.
scoped_ptr<BrowserProcess> fake_browser_process_;
AtomURLRequestJobFactory* job_factory_; // Weak reference.
DISALLOW_COPY_AND_ASSIGN(AtomBrowserContext);