 f7fb6371c2
			
		
	
	
	f7fb6371c2
	
	
	
		
			
			The default (256) is too low for pages that load a lot of resources all at once. See https://codereview.chromium.org/125151 and bugs like https://code.google.com/p/chromium/issues/detail?id=14137 and https://code.google.com/p/chromium/issues/detail?id=151039. The new limit matches what Chrome itself uses.
		
			
				
	
	
		
			47 lines
		
	
	
	
		
			1.3 KiB
			
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			1.3 KiB
			
		
	
	
	
		
			C++
		
	
	
	
	
	
| // Copyright (c) 2012 The Chromium Authors. All rights reserved.
 | |
| // Use of this source code is governed by a BSD-style license that can be
 | |
| // found in the LICENSE-CHROMIUM file.
 | |
| 
 | |
| #ifndef BRIGHTRAY_BROWSER_BROWSER_MAIN_PARTS_H_
 | |
| #define BRIGHTRAY_BROWSER_BROWSER_MAIN_PARTS_H_
 | |
| 
 | |
| #include "base/compiler_specific.h"
 | |
| #include "base/memory/scoped_ptr.h"
 | |
| #include "content/public/browser/browser_main_parts.h"
 | |
| 
 | |
| namespace brightray {
 | |
| 
 | |
| class BrowserContext;
 | |
| class WebUIControllerFactory;
 | |
| 
 | |
| class BrowserMainParts : public content::BrowserMainParts {
 | |
|  public:
 | |
|   BrowserMainParts();
 | |
|   ~BrowserMainParts();
 | |
| 
 | |
|   BrowserContext* browser_context() { return browser_context_.get(); }
 | |
| 
 | |
|  protected:
 | |
|   // Subclasses should override this to provide their own BrowserContxt
 | |
|   // implementation. The caller takes ownership of the returned object.
 | |
|   virtual BrowserContext* CreateBrowserContext();
 | |
| 
 | |
| #if defined(OS_MACOSX)
 | |
|   virtual void PreEarlyInitialization() OVERRIDE;
 | |
|   virtual void PreMainMessageLoopStart() OVERRIDE;
 | |
| #endif
 | |
| 
 | |
|   virtual void PreMainMessageLoopRun() OVERRIDE;
 | |
|   virtual void PostMainMessageLoopRun() OVERRIDE;
 | |
|   virtual int PreCreateThreads() OVERRIDE;
 | |
| 
 | |
|  private:
 | |
|   scoped_ptr<BrowserContext> browser_context_;
 | |
|   scoped_ptr<WebUIControllerFactory> web_ui_controller_factory_;
 | |
| 
 | |
|   DISALLOW_COPY_AND_ASSIGN(BrowserMainParts);
 | |
| };
 | |
| 
 | |
| }  // namespace brightray
 | |
| 
 | |
| #endif
 |