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

Side by Side Diff: chrome/browser/instant/instant_loader_manager.cc

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/instant/instant_loader.cc ('k') | chrome/browser/location_bar.h » ('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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/instant/instant_loader_manager.h" 5 #include "chrome/browser/instant/instant_loader_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/instant/instant_loader.h" 8 #include "chrome/browser/instant/instant_loader.h"
9 #include "chrome/browser/instant/instant_loader_delegate.h" 9 #include "chrome/browser/instant/instant_loader_delegate.h"
10 #include "chrome/browser/tab_contents/tab_contents.h" 10 #include "chrome/browser/tab_contents/tab_contents.h"
11 #include "chrome/browser/tab_contents_wrapper.h" 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
12 12
13 InstantLoaderManager::InstantLoaderManager( 13 InstantLoaderManager::InstantLoaderManager(
14 InstantLoaderDelegate* loader_delegate) 14 InstantLoaderDelegate* loader_delegate)
15 : loader_delegate_(loader_delegate), 15 : loader_delegate_(loader_delegate),
16 current_loader_(NULL), 16 current_loader_(NULL),
17 pending_loader_(NULL) { 17 pending_loader_(NULL) {
18 } 18 }
19 19
20 InstantLoaderManager::~InstantLoaderManager() { 20 InstantLoaderManager::~InstantLoaderManager() {
21 for (Loaders::iterator i = instant_loaders_.begin(); 21 for (Loaders::iterator i = instant_loaders_.begin();
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 InstantLoader* loader = new InstantLoader(loader_delegate_, id); 142 InstantLoader* loader = new InstantLoader(loader_delegate_, id);
143 if (id) 143 if (id)
144 instant_loaders_[id] = loader; 144 instant_loaders_[id] = loader;
145 return loader; 145 return loader;
146 } 146 }
147 147
148 InstantLoader* InstantLoaderManager::GetInstantLoader(TemplateURLID id) { 148 InstantLoader* InstantLoaderManager::GetInstantLoader(TemplateURLID id) {
149 Loaders::iterator i = instant_loaders_.find(id); 149 Loaders::iterator i = instant_loaders_.find(id);
150 return i == instant_loaders_.end() ? CreateLoader(id) : i->second; 150 return i == instant_loaders_.end() ? CreateLoader(id) : i->second;
151 } 151 }
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_loader.cc ('k') | chrome/browser/location_bar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698