| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_IMPORTER_IMPORTER_HOST_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_ | 
| 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_ | 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" | 
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" | 
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 74       const importer::SourceProfile& source_profile, | 74       const importer::SourceProfile& source_profile, | 
| 75       Profile* target_profile, | 75       Profile* target_profile, | 
| 76       uint16 items, | 76       uint16 items, | 
| 77       ProfileWriter* writer, | 77       ProfileWriter* writer, | 
| 78       bool first_run); | 78       bool first_run); | 
| 79 | 79 | 
| 80   // Cancels the import process. | 80   // Cancels the import process. | 
| 81   virtual void Cancel(); | 81   virtual void Cancel(); | 
| 82 | 82 | 
| 83  protected: | 83  protected: | 
| 84   ~ImporterHost(); | 84   virtual ~ImporterHost(); | 
| 85 | 85 | 
| 86   // Returns true if importer should import to bookmark bar. | 86   // Returns true if importer should import to bookmark bar. | 
| 87   bool ShouldImportToBookmarkBar(bool first_run); | 87   bool ShouldImportToBookmarkBar(bool first_run); | 
| 88 | 88 | 
| 89   // Make sure that Firefox isn't running, if import browser is Firefox. Show | 89   // Make sure that Firefox isn't running, if import browser is Firefox. Show | 
| 90   // to the user a dialog that notifies that is necessary to close Firefox | 90   // to the user a dialog that notifies that is necessary to close Firefox | 
| 91   // prior to continue. | 91   // prior to continue. | 
| 92   // |source_profile| - importer profile to import. | 92   // |source_profile| - importer profile to import. | 
| 93   // |items| - specifies which data to import (bitmask of importer::ImportItem). | 93   // |items| - specifies which data to import (bitmask of importer::ImportItem). | 
| 94   // |first_run| - true if this method is being called during first run. | 94   // |first_run| - true if this method is being called during first run. | 
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 158   // The observer that we need to notify about changes in the import process. | 158   // The observer that we need to notify about changes in the import process. | 
| 159   importer::ImporterProgressObserver* observer_; | 159   importer::ImporterProgressObserver* observer_; | 
| 160 | 160 | 
| 161   // Firefox profile lock. | 161   // Firefox profile lock. | 
| 162   scoped_ptr<FirefoxProfileLock> firefox_lock_; | 162   scoped_ptr<FirefoxProfileLock> firefox_lock_; | 
| 163 | 163 | 
| 164   DISALLOW_COPY_AND_ASSIGN(ImporterHost); | 164   DISALLOW_COPY_AND_ASSIGN(ImporterHost); | 
| 165 }; | 165 }; | 
| 166 | 166 | 
| 167 #endif  // CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_ | 167 #endif  // CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_ | 
| OLD | NEW | 
|---|