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

Side by Side Diff: chrome/browser/instant/instant_loader.h

Issue 10173001: Add a Profile* member to TemplateURL. This makes some invocations of ReplaceSearchTerms() a bit le… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 TabContentsWrapper* new_tc); 186 TabContentsWrapper* new_tc);
187 187
188 // Called to set up the |preview_contents_| based on |tab_contents| when it is 188 // Called to set up the |preview_contents_| based on |tab_contents| when it is
189 // created or replaced. 189 // created or replaced.
190 void SetupPreviewContents(TabContentsWrapper* tab_contents); 190 void SetupPreviewContents(TabContentsWrapper* tab_contents);
191 191
192 // Creates and sets the preview TabContentsWrapper. 192 // Creates and sets the preview TabContentsWrapper.
193 void CreatePreviewContents(TabContentsWrapper* tab_contents); 193 void CreatePreviewContents(TabContentsWrapper* tab_contents);
194 194
195 // Creates and loads the |template_url|'s instant URL. 195 // Creates and loads the |template_url|'s instant URL.
196 void LoadInstantURL(TabContentsWrapper* tab_contents, 196 void LoadInstantURL(const TemplateURL* template_url,
197 const TemplateURL* template_url,
198 content::PageTransition transition_type, 197 content::PageTransition transition_type,
199 const string16& user_text, 198 const string16& user_text,
200 bool verbatim); 199 bool verbatim);
201 200
202 InstantLoaderDelegate* delegate_; 201 InstantLoaderDelegate* delegate_;
203 202
204 // If we're showing instant results this is the ID of the TemplateURL driving 203 // If we're showing instant results this is the ID of the TemplateURL driving
205 // the results. A value of 0 means there is no TemplateURL. 204 // the results. A value of 0 means there is no TemplateURL.
206 const TemplateURLID template_url_id_; 205 const TemplateURLID template_url_id_;
207 206
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 std::string group_; 256 std::string group_;
258 257
259 // The session storage namespace identifier of the original tab contents that 258 // The session storage namespace identifier of the original tab contents that
260 // the preview_contents_ was based upon. 259 // the preview_contents_ was based upon.
261 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace_; 260 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace_;
262 261
263 DISALLOW_COPY_AND_ASSIGN(InstantLoader); 262 DISALLOW_COPY_AND_ASSIGN(InstantLoader);
264 }; 263 };
265 264
266 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ 265 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698