Chromium Code Reviews

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 5912001: Add PrerenderResourceHandler and hook it into the ResourceDispatcherHost.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Another merge with trunk Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 1349 matching lines...)
1360 if (!pref_proxy_config_tracker_) 1360 if (!pref_proxy_config_tracker_)
1361 pref_proxy_config_tracker_ = new PrefProxyConfigTracker(GetPrefs()); 1361 pref_proxy_config_tracker_ = new PrefProxyConfigTracker(GetPrefs());
1362 1362
1363 return pref_proxy_config_tracker_; 1363 return pref_proxy_config_tracker_;
1364 } 1364 }
1365 1365
1366 PrerenderManager* ProfileImpl::GetPrerenderManager() { 1366 PrerenderManager* ProfileImpl::GetPrerenderManager() {
1367 CommandLine* cl = CommandLine::ForCurrentProcess(); 1367 CommandLine* cl = CommandLine::ForCurrentProcess();
1368 if (!cl->HasSwitch(switches::kEnablePagePrerender)) 1368 if (!cl->HasSwitch(switches::kEnablePagePrerender))
1369 return NULL; 1369 return NULL;
1370 if (!prerender_manager_.get()) 1370 if (!prerender_manager_)
1371 prerender_manager_.reset(new PrerenderManager(this)); 1371 prerender_manager_ = new PrerenderManager(this);
1372 return prerender_manager_.get(); 1372 return prerender_manager_;
1373 } 1373 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine