| 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 #ifndef CHROME_BROWSER_TRANSLATE_PAGE_TRANSLATED_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_TRANSLATE_PAGE_TRANSLATED_DETAILS_H_ |
| 6 #define CHROME_BROWSER_TRANSLATE_PAGE_TRANSLATED_DETAILS_H_ | 6 #define CHROME_BROWSER_TRANSLATE_PAGE_TRANSLATED_DETAILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/common/translate/translate_errors.h" | 10 #include "chrome/common/translate/translate_errors.h" |
| 11 | 11 |
| 12 // Used when sending a notification about a page that has been translated. | 12 // Used when sending a notification about a page that has been translated. |
| 13 struct PageTranslatedDetails { | 13 struct PageTranslatedDetails { |
| 14 PageTranslatedDetails(const std::string& in_source_language, | |
| 15 const std::string& in_target_language, | |
| 16 TranslateErrors::Type in_error_type) | |
| 17 : source_language(in_source_language), | |
| 18 target_language(in_target_language), | |
| 19 error_type(in_error_type) { } | |
| 20 | |
| 21 std::string source_language; | 14 std::string source_language; |
| 22 std::string target_language; | 15 std::string target_language; |
| 23 TranslateErrors::Type error_type; | 16 TranslateErrors::Type error_type; |
| 24 }; | 17 }; |
| 25 | 18 |
| 26 #endif // CHROME_BROWSER_TRANSLATE_PAGE_TRANSLATED_DETAILS_H_ | 19 #endif // CHROME_BROWSER_TRANSLATE_PAGE_TRANSLATED_DETAILS_H_ |
| OLD | NEW |