Index: components/translate/content/common/translate_messages.h |
diff --git a/components/translate/content/common/translate_messages.h b/components/translate/content/common/translate_messages.h |
deleted file mode 100644 |
index ef394f5f22cc7841d84fe2e2812c46a20a6492c6..0000000000000000000000000000000000000000 |
--- a/components/translate/content/common/translate_messages.h |
+++ /dev/null |
@@ -1,67 +0,0 @@ |
-// Copyright 2014 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. |
- |
-// Multiply-included message file, hence no include guard. |
- |
-#include "components/translate/core/common/language_detection_details.h" |
-#include "components/translate/core/common/translate_errors.h" |
-#include "ipc/ipc_message_macros.h" |
-#include "ipc/ipc_message_utils.h" |
-#include "url/ipc/url_param_traits.h" |
- |
-#define IPC_MESSAGE_START TranslateMsgStart |
- |
-IPC_ENUM_TRAITS_MAX_VALUE(translate::TranslateErrors::Type, |
- translate::TranslateErrors::TYPE_LAST) |
- |
-IPC_STRUCT_TRAITS_BEGIN(translate::LanguageDetectionDetails) |
- IPC_STRUCT_TRAITS_MEMBER(time) |
- IPC_STRUCT_TRAITS_MEMBER(url) |
- IPC_STRUCT_TRAITS_MEMBER(content_language) |
- IPC_STRUCT_TRAITS_MEMBER(cld_language) |
- IPC_STRUCT_TRAITS_MEMBER(is_cld_reliable) |
- IPC_STRUCT_TRAITS_MEMBER(has_notranslate) |
- IPC_STRUCT_TRAITS_MEMBER(html_root_language) |
- IPC_STRUCT_TRAITS_MEMBER(adopted_language) |
- IPC_STRUCT_TRAITS_MEMBER(contents) |
-IPC_STRUCT_TRAITS_END() |
- |
-//----------------------------------------------------------------------------- |
-// RenderFrame messages |
-// These are messages sent from the browser to the renderer process. |
- |
-// Tells the renderer to translate the page contents from one language to |
-// another. |
-IPC_MESSAGE_ROUTED4(ChromeFrameMsg_TranslatePage, |
- int /* page_seq_no */, |
- std::string, /* the script injected in the page */ |
- std::string, /* BCP 47/RFC 5646 language code the page |
- is in */ |
- std::string /* BCP 47/RFC 5646 language code to translate |
- to */) |
- |
-// Tells the renderer to revert the text of translated page to its original |
-// contents. |
-IPC_MESSAGE_ROUTED1(ChromeFrameMsg_RevertTranslation, int /* page id */) |
- |
-//----------------------------------------------------------------------------- |
-// Host messages |
-// These are messages sent from the renderer to the browser process. |
- |
-// Notification that the current page was assigned a sequence number. |
-IPC_MESSAGE_ROUTED1(ChromeFrameHostMsg_TranslateAssignedSequenceNumber, |
- int /* page_seq_no */) |
- |
-// Notification that the language for the tab has been determined. |
-IPC_MESSAGE_ROUTED2( |
- ChromeFrameHostMsg_TranslateLanguageDetermined, |
- translate::LanguageDetectionDetails /* details about lang detection */, |
- bool /* whether the page needs translation */) |
- |
-// Notifies the browser that a page has been translated. |
-IPC_MESSAGE_ROUTED3( |
- ChromeFrameHostMsg_PageTranslated, |
- std::string /* the original language */, |
- std::string /* the translated language */, |
- translate::TranslateErrors::Type /* the error type if available */) |