Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: chrome/common/render_messages.h

Issue 14494004: Added the 'Translation Logs' tab to chrome://translate-internals/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (Rebasing) Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <map> 6 #include <map>
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/process.h" 13 #include "base/process.h"
14 #include "base/shared_memory.h" 14 #include "base/shared_memory.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "base/stringprintf.h" 16 #include "base/stringprintf.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "chrome/common/common_param_traits.h" 19 #include "chrome/common/common_param_traits.h"
20 #include "chrome/common/content_settings.h" 20 #include "chrome/common/content_settings.h"
21 #include "chrome/common/content_settings_pattern.h" 21 #include "chrome/common/content_settings_pattern.h"
22 #include "chrome/common/instant_types.h" 22 #include "chrome/common/instant_types.h"
23 #include "chrome/common/language_detection_details.h"
23 #include "chrome/common/nacl_types.h" 24 #include "chrome/common/nacl_types.h"
24 #include "chrome/common/omnibox_focus_state.h" 25 #include "chrome/common/omnibox_focus_state.h"
25 #include "chrome/common/search_provider.h" 26 #include "chrome/common/search_provider.h"
26 #include "chrome/common/search_types.h" 27 #include "chrome/common/search_types.h"
27 #include "chrome/common/translate_errors.h" 28 #include "chrome/common/translate_errors.h"
28 #include "content/public/common/common_param_traits.h" 29 #include "content/public/common/common_param_traits.h"
29 #include "ipc/ipc_channel_handle.h" 30 #include "ipc/ipc_channel_handle.h"
30 #include "ipc/ipc_message_macros.h" 31 #include "ipc/ipc_message_macros.h"
31 #include "ipc/ipc_platform_file.h" 32 #include "ipc/ipc_platform_file.h"
32 #include "third_party/skia/include/core/SkBitmap.h" 33 #include "third_party/skia/include/core/SkBitmap.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 IPC_STRUCT_TRAITS_END() 233 IPC_STRUCT_TRAITS_END()
233 234
234 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats) 235 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats)
235 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) 236 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
236 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) 237 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
237 IPC_STRUCT_TRAITS_MEMBER(capacity) 238 IPC_STRUCT_TRAITS_MEMBER(capacity)
238 IPC_STRUCT_TRAITS_MEMBER(liveSize) 239 IPC_STRUCT_TRAITS_MEMBER(liveSize)
239 IPC_STRUCT_TRAITS_MEMBER(deadSize) 240 IPC_STRUCT_TRAITS_MEMBER(deadSize)
240 IPC_STRUCT_TRAITS_END() 241 IPC_STRUCT_TRAITS_END()
241 242
243 IPC_STRUCT_TRAITS_BEGIN(LanguageDetectionDetails)
244 IPC_STRUCT_TRAITS_MEMBER(time)
245 IPC_STRUCT_TRAITS_MEMBER(url)
246 IPC_STRUCT_TRAITS_MEMBER(content_language)
247 IPC_STRUCT_TRAITS_MEMBER(cld_language)
248 IPC_STRUCT_TRAITS_MEMBER(is_cld_reliable)
249 IPC_STRUCT_TRAITS_MEMBER(adopted_language)
250 IPC_STRUCT_TRAITS_END()
251
242 //----------------------------------------------------------------------------- 252 //-----------------------------------------------------------------------------
243 // RenderView messages 253 // RenderView messages
244 // These are messages sent from the browser to the renderer process. 254 // These are messages sent from the browser to the renderer process.
245 255
246 // Tells the renderer to set its maximum cache size to the supplied value. 256 // Tells the renderer to set its maximum cache size to the supplied value.
247 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities, 257 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
248 size_t /* min_dead_capacity */, 258 size_t /* min_dead_capacity */,
249 size_t /* max_dead_capacity */, 259 size_t /* max_dead_capacity */,
250 size_t /* capacity */) 260 size_t /* capacity */)
251 261
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 // These are messages sent from the renderer to the browser process. 446 // These are messages sent from the renderer to the browser process.
437 447
438 // Provides the contents for the given page that was loaded recently. 448 // Provides the contents for the given page that was loaded recently.
439 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageContents, 449 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageContents,
440 GURL /* URL of the page */, 450 GURL /* URL of the page */,
441 int32 /* page id */, 451 int32 /* page id */,
442 string16 /* page contents */) 452 string16 /* page contents */)
443 453
444 // Notification that the language for the tab has been determined. 454 // Notification that the language for the tab has been determined.
445 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined, 455 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined,
446 std::string /* page ISO639_1 language code */, 456 LanguageDetectionDetails /* details about lang detection */,
447 bool /* whether the page needs translation */) 457 bool /* whether the page needs translation */)
448 458
449 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats, 459 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
450 WebKit::WebCache::UsageStats /* stats */) 460 WebKit::WebCache::UsageStats /* stats */)
451 461
452 // Tells the browser that content in the current page was blocked due to the 462 // Tells the browser that content in the current page was blocked due to the
453 // user's content settings. 463 // user's content settings.
454 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked, 464 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
455 ContentSettingsType, /* type of blocked content */ 465 ContentSettingsType, /* type of blocked content */
456 std::string /* resource identifier */) 466 std::string /* resource identifier */)
457 467
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 // previous SetCookie message to be processed. 750 // previous SetCookie message to be processed.
741 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 751 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
742 GURL /* url */, 752 GURL /* url */,
743 GURL /* first_party_for_cookies */, 753 GURL /* first_party_for_cookies */,
744 std::string /* cookies */) 754 std::string /* cookies */)
745 755
746 // Provide the browser process with current renderer framerate. 756 // Provide the browser process with current renderer framerate.
747 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 757 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
748 int /* routing id */, 758 int /* routing id */,
749 float /* frames per second */) 759 float /* frames per second */)
OLDNEW
« no previous file with comments | « chrome/common/language_detection_details.cc ('k') | chrome/renderer/translate/translate_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698