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