| 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_MESSAGES_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_MESSAGES_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_MESSAGES_H_ | 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_MESSAGES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "chrome/browser/history/history_types.h" | 13 #include "chrome/browser/history/history_types.h" |
| 14 #include "chrome/browser/importer/importer_data_types.h" | 14 #include "chrome/browser/importer/importer_data_types.h" |
| 15 #include "chrome/browser/importer/profile_writer.h" | 15 #include "chrome/browser/importer/profile_writer.h" |
| 16 #include "chrome/browser/search_engines/template_url.h" | 16 #include "chrome/browser/search_engines/template_url.h" |
| 17 #include "chrome/common/common_param_traits.h" | 17 #include "chrome/common/common_param_traits.h" |
| 18 #include "content/common/common_param_traits.h" |
| 18 #include "ipc/ipc_message_utils.h" | 19 #include "ipc/ipc_message_utils.h" |
| 19 | 20 |
| 20 namespace IPC { | 21 namespace IPC { |
| 21 | 22 |
| 22 // Traits for importer::ProfileInfo struct to pack/unpack. | 23 // Traits for importer::ProfileInfo struct to pack/unpack. |
| 23 template <> | 24 template <> |
| 24 struct ParamTraits<importer::ProfileInfo> { | 25 struct ParamTraits<importer::ProfileInfo> { |
| 25 typedef importer::ProfileInfo param_type; | 26 typedef importer::ProfileInfo param_type; |
| 26 static void Write(Message* m, const param_type& p) { | 27 static void Write(Message* m, const param_type& p) { |
| 27 WriteParam(m, p.description); | 28 WriteParam(m, p.description); |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 static void Log(const param_type& p, std::string* l) { | 364 static void Log(const param_type& p, std::string* l) { |
| 364 l->append("<TemplateURL>"); | 365 l->append("<TemplateURL>"); |
| 365 } | 366 } |
| 366 }; | 367 }; |
| 367 | 368 |
| 368 } // namespace IPC | 369 } // namespace IPC |
| 369 | 370 |
| 370 #include "chrome/browser/importer/importer_messages_internal.h" | 371 #include "chrome/browser/importer/importer_messages_internal.h" |
| 371 | 372 |
| 372 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_MESSAGES_H_ | 373 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_MESSAGES_H_ |
| OLD | NEW |