| 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_IMPORT_PROGRESS_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORT_PROGRESS_DIALOG_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_IMPORT_PROGRESS_DIALOG_H_ | 6 #define CHROME_BROWSER_IMPORTER_IMPORT_PROGRESS_DIALOG_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // Methods called by importer_host via ImporterObserverBridge. | 65 // Methods called by importer_host via ImporterObserverBridge. |
| 66 - (void)ImportItemStarted:(importer::ImportItem)item; | 66 - (void)ImportItemStarted:(importer::ImportItem)item; |
| 67 - (void)ImportItemEnded:(importer::ImportItem)item; | 67 - (void)ImportItemEnded:(importer::ImportItem)item; |
| 68 - (void)ImportEnded; | 68 - (void)ImportEnded; |
| 69 | 69 |
| 70 @end | 70 @end |
| 71 | 71 |
| 72 // C++ -> objc bridge for import status notifications. | 72 // C++ -> objc bridge for import status notifications. |
| 73 class ImporterObserverBridge : public importer::ImporterProgressObserver { | 73 class ImporterObserverBridge : public importer::ImporterProgressObserver { |
| 74 public: | 74 public: |
| 75 ImporterObserverBridge(ImportProgressDialogController* owner); | 75 explicit ImporterObserverBridge(ImportProgressDialogController* owner); |
| 76 virtual ~ImporterObserverBridge(); | 76 virtual ~ImporterObserverBridge(); |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 // importer::ImporterProgressObserver: | 79 // importer::ImporterProgressObserver: |
| 80 virtual void ImportStarted() OVERRIDE; | 80 virtual void ImportStarted() OVERRIDE; |
| 81 virtual void ImportItemStarted(importer::ImportItem item) OVERRIDE; | 81 virtual void ImportItemStarted(importer::ImportItem item) OVERRIDE; |
| 82 virtual void ImportItemEnded(importer::ImportItem item) OVERRIDE; | 82 virtual void ImportItemEnded(importer::ImportItem item) OVERRIDE; |
| 83 virtual void ImportEnded() OVERRIDE; | 83 virtual void ImportEnded() OVERRIDE; |
| 84 | 84 |
| 85 ImportProgressDialogController* owner_; | 85 ImportProgressDialogController* owner_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(ImporterObserverBridge); | 87 DISALLOW_COPY_AND_ASSIGN(ImporterObserverBridge); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 #endif // CHROME_BROWSER_IMPORTER_IMPORT_PROGRESS_DIALOG_H_ | 90 #endif // CHROME_BROWSER_IMPORTER_IMPORT_PROGRESS_DIALOG_H_ |
| OLD | NEW |