summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc3
-rw-r--r--chrome/browser/tab_contents/tab_contents_delegate.h14
2 files changed, 12 insertions, 5 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 53e074c..bde80b1 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -2032,12 +2032,11 @@ void TabContents::PageHasOSDD(RenderViewHost* render_view_host,
// Download the OpenSearch description document. If this is successful a
// new keyword will be created when done.
- gfx::NativeWindow ancestor = view_->GetTopLevelNativeWindow();
profile()->GetTemplateURLFetcher()->ScheduleDownload(
keyword,
url,
base_entry->favicon().url(),
- ancestor,
+ this,
autodetected);
}
diff --git a/chrome/browser/tab_contents/tab_contents_delegate.h b/chrome/browser/tab_contents/tab_contents_delegate.h
index 2fdaa7a..b93de6e 100644
--- a/chrome/browser/tab_contents/tab_contents_delegate.h
+++ b/chrome/browser/tab_contents/tab_contents_delegate.h
@@ -15,10 +15,12 @@
class DownloadItem;
class ExtensionFunctionDispatcher;
+class GURL;
+class HtmlDialogUIDelegate;
+class Profile;
class RenderViewHost;
class TabContents;
-class HtmlDialogUIDelegate;
-class GURL;
+class TemplateURL;
// Objects implement this interface to get notified about changes in the
// TabContents and to provide necessary functionality.
@@ -158,7 +160,7 @@ class TabContentsDelegate {
// This is used when the contents is an extension that needs to route
// api calls through to the Browser process.
- virtual ExtensionFunctionDispatcher *CreateExtensionFunctionDispatcher(
+ virtual ExtensionFunctionDispatcher* CreateExtensionFunctionDispatcher(
RenderViewHost* render_view_host,
const std::string& extension_id) {
return NULL;
@@ -197,6 +199,12 @@ class TabContentsDelegate {
// Returns the renderer's current preferences settings.
RendererPreferences GetRendererPrefs() const { return renderer_preferences_; }
+ // Shows a confirmation UI that the specified |template_url| is to be added as
+ // a search engine.
+ virtual void ConfirmAddSearchProvider(const TemplateURL* template_url,
+ Profile* profile) {
+ }
+
protected:
~TabContentsDelegate() {}
RendererPreferences renderer_preferences_;