blob: 6a009cdb8eb8b0dbd55283767ef77f3b5fc73881 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (c) 2010 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 file.
#ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_CALLBACKS_H_
#define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_CALLBACKS_H_
#pragma once
class Profile;
class TemplateURL;
class TemplateURLModel;
// Callbacks for the TemplateURLFetcher.
class TemplateURLFetcherCallbacks {
public:
TemplateURLFetcherCallbacks() {}
virtual ~TemplateURLFetcherCallbacks() {}
// Performs the confirmation step for setting the default search engine
// described by |template_url|. Takes ownership of |template_url|.
virtual void ConfirmSetDefaultSearchProvider(
TemplateURL* template_url,
TemplateURLModel* template_url_model) = 0;
// Performs the confirmation step for adding a search engine described by
// |template_url|. Takes ownership of |template_url|.
virtual void ConfirmAddSearchProvider(
TemplateURL* template_url,
Profile* profile) = 0;
};
#endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_CALLBACKS_H_
|