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

Side by Side Diff: chrome/browser/importer/importer_host.h

Issue 6979007: Many fixes to bookmark importing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Happy tests =) Created 9 years, 7 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
« no previous file with comments | « chrome/browser/importer/importer_bridge.h ('k') | chrome/browser/importer/importer_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual ~ImporterHost(); 84 virtual ~ImporterHost();
85 85
86 // Returns true if importer should import to bookmark bar.
87 bool ShouldImportToBookmarkBar(bool first_run);
88
89 // Make sure that Firefox isn't running, if import browser is Firefox. Show 86 // 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 87 // to the user a dialog that notifies that is necessary to close Firefox
91 // prior to continue. 88 // prior to continue.
92 // |source_profile| - importer profile to import. 89 // |source_profile| - importer profile to import.
93 // |items| - specifies which data to import (bitmask of importer::ImportItem). 90 // |items| - specifies which data to import (bitmask of importer::ImportItem).
94 // |first_run| - true if this method is being called during first run. 91 // |first_run| - true if this method is being called during first run.
95 void CheckForFirefoxLock(const importer::SourceProfile& source_profile, 92 void CheckForFirefoxLock(const importer::SourceProfile& source_profile,
96 uint16 items, 93 uint16 items,
97 bool first_run); 94 bool first_run);
98 95
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // The observer that we need to notify about changes in the import process. 155 // The observer that we need to notify about changes in the import process.
159 importer::ImporterProgressObserver* observer_; 156 importer::ImporterProgressObserver* observer_;
160 157
161 // Firefox profile lock. 158 // Firefox profile lock.
162 scoped_ptr<FirefoxProfileLock> firefox_lock_; 159 scoped_ptr<FirefoxProfileLock> firefox_lock_;
163 160
164 DISALLOW_COPY_AND_ASSIGN(ImporterHost); 161 DISALLOW_COPY_AND_ASSIGN(ImporterHost);
165 }; 162 };
166 163
167 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_ 164 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/importer/importer_bridge.h ('k') | chrome/browser/importer/importer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698