OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/dom_ui/import_data_handler.h" | 5 #include "chrome/browser/dom_ui/import_data_handler.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "chrome/browser/pref_service.h" | 15 #include "chrome/browser/prefs/pref_service.h" |
16 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
17 #include "grit/chromium_strings.h" | 17 #include "grit/chromium_strings.h" |
18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
19 #include "chrome/browser/importer/importer_data_types.h" | 19 #include "chrome/browser/importer/importer_data_types.h" |
20 | 20 |
21 ImportDataHandler::ImportDataHandler() { | 21 ImportDataHandler::ImportDataHandler() { |
22 } | 22 } |
23 | 23 |
24 ImportDataHandler::~ImportDataHandler() { | 24 ImportDataHandler::~ImportDataHandler() { |
25 if (importer_host_ != NULL) { | 25 if (importer_host_ != NULL) { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void ImportDataHandler::ImportItemStarted(importer::ImportItem item) { | 124 void ImportDataHandler::ImportItemStarted(importer::ImportItem item) { |
125 } | 125 } |
126 | 126 |
127 void ImportDataHandler::ImportItemEnded(importer::ImportItem item) { | 127 void ImportDataHandler::ImportItemEnded(importer::ImportItem item) { |
128 } | 128 } |
129 | 129 |
130 void ImportDataHandler::ImportEnded() { | 130 void ImportDataHandler::ImportEnded() { |
131 dom_ui_->CallJavascriptFunction(L"ImportDataOverlay.dismiss"); | 131 dom_ui_->CallJavascriptFunction(L"ImportDataOverlay.dismiss"); |
132 importer_host_ = NULL; | 132 importer_host_ = NULL; |
133 } | 133 } |
OLD | NEW |