| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 5 #ifndef CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ |
| 6 #define CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 6 #define CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 #include <vector> | 10 #include <vector> |
| 10 | 11 |
| 11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 13 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "chrome/common/importer/importer_bridge.h" | 15 #include "chrome/common/importer/importer_bridge.h" |
| 16 #include "components/favicon_base/favicon_usage_data.h" | 16 #include "components/favicon_base/favicon_usage_data.h" |
| 17 | 17 |
| 18 class GURL; | 18 class GURL; |
| 19 struct ImportedBookmarkEntry; | 19 struct ImportedBookmarkEntry; |
| 20 | 20 |
| 21 namespace base { | 21 namespace base { |
| 22 class DictionaryValue; | 22 class DictionaryValue; |
| 23 class TaskRunner; | 23 class TaskRunner; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // End ImporterBridge implementation. | 85 // End ImporterBridge implementation. |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 ~ExternalProcessImporterBridge() override; | 88 ~ExternalProcessImporterBridge() override; |
| 89 | 89 |
| 90 void Send(IPC::Message* message); | 90 void Send(IPC::Message* message); |
| 91 void SendInternal(IPC::Message* message); | 91 void SendInternal(IPC::Message* message); |
| 92 | 92 |
| 93 // Holds strings needed by the external importer because the resource | 93 // Holds strings needed by the external importer because the resource |
| 94 // bundle isn't available to the external process. | 94 // bundle isn't available to the external process. |
| 95 scoped_ptr<base::DictionaryValue> localized_strings_; | 95 std::unique_ptr<base::DictionaryValue> localized_strings_; |
| 96 | 96 |
| 97 IPC::Sender* sender_; | 97 IPC::Sender* sender_; |
| 98 scoped_refptr<base::TaskRunner> task_runner_; | 98 scoped_refptr<base::TaskRunner> task_runner_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); | 100 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 #endif // CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ | 103 #endif // CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ |
| OLD | NEW |