summaryrefslogtreecommitdiffstats
path: root/chrome/browser/translate/page_translated_details.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/translate/page_translated_details.h')
-rw-r--r--chrome/browser/translate/page_translated_details.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/chrome/browser/translate/page_translated_details.h b/chrome/browser/translate/page_translated_details.h
new file mode 100644
index 0000000..61a43d4
--- /dev/null
+++ b/chrome/browser/translate/page_translated_details.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_TRANSLATE_PAGE_TRANSLATED_DETAILS_H_
+#define CHROME_BROWSER_TRANSLATE_PAGE_TRANSLATED_DETAILS_H_
+
+#include <string>
+
+#include "chrome/common/translate_errors.h"
+
+// Used when sending a notification about a page that has been translated.
+struct PageTranslatedDetails {
+ PageTranslatedDetails(const std::string& in_source_language,
+ const std::string& in_target_language,
+ TranslateErrors::Type in_error_type)
+ : source_language(in_source_language),
+ target_language(in_target_language),
+ error_type(in_error_type) { }
+
+ std::string source_language;
+ std::string target_language;
+ TranslateErrors::Type error_type;
+};
+
+#endif // CHROME_BROWSER_TRANSLATE_PAGE_TRANSLATED_DETAILS_H_