• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_DIALOG_H_
6 #define CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_DIALOG_H_
7 #pragma once
8 
9 #include "ui/gfx/native_widget_types.h"
10 
11 class ImporterHost;
12 class ImporterObserver;
13 class Profile;
14 
15 namespace importer {
16 
17 struct SourceProfile;
18 
19 // Shows an UI for importing and begins importing the specified |items| from
20 // |source_profile| to |target_profile|. |importer_observer| is notified when
21 // the process is complete, it can be NULL. |parent_window| is the window to
22 // parent the UI to, it can be NULL if there's nothing to parent to. |first_run|
23 // is true if it's invoked in the first run UI.
24 void ShowImportProgressDialog(gfx::NativeWindow parent_window,
25                               uint16 items,
26                               ImporterHost* importer_host,
27                               ImporterObserver* importer_observer,
28                               const SourceProfile& source_profile,
29                               Profile* target_profile,
30                               bool first_run);
31 
32 }  // namespace importer
33 
34 #endif  // CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_DIALOG_H_
35