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

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: first commit 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 IPC_STRUCT_TRAITS_END() 231 IPC_STRUCT_TRAITS_END()
231 232
232 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats) 233 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats)
233 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) 234 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
234 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) 235 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
235 IPC_STRUCT_TRAITS_MEMBER(capacity) 236 IPC_STRUCT_TRAITS_MEMBER(capacity)
236 IPC_STRUCT_TRAITS_MEMBER(liveSize) 237 IPC_STRUCT_TRAITS_MEMBER(liveSize)
237 IPC_STRUCT_TRAITS_MEMBER(deadSize) 238 IPC_STRUCT_TRAITS_MEMBER(deadSize)
238 IPC_STRUCT_TRAITS_END() 239 IPC_STRUCT_TRAITS_END()
239 240
241 IPC_STRUCT_TRAITS_BEGIN(LanguageDetectionDetails)
242 IPC_STRUCT_TRAITS_MEMBER(time)
243 IPC_STRUCT_TRAITS_MEMBER(url)
244 IPC_STRUCT_TRAITS_MEMBER(content_language)
245 IPC_STRUCT_TRAITS_MEMBER(cld_language)
246 IPC_STRUCT_TRAITS_MEMBER(is_cld_reliable)
247 IPC_STRUCT_TRAITS_MEMBER(adopted_language)
248 IPC_STRUCT_TRAITS_END()
249
240 //----------------------------------------------------------------------------- 250 //-----------------------------------------------------------------------------
241 // RenderView messages 251 // RenderView messages
242 // These are messages sent from the browser to the renderer process. 252 // These are messages sent from the browser to the renderer process.
243 253
244 // Tells the renderer to set its maximum cache size to the supplied value. 254 // Tells the renderer to set its maximum cache size to the supplied value.
245 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities, 255 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
246 size_t /* min_dead_capacity */, 256 size_t /* min_dead_capacity */,
247 size_t /* max_dead_capacity */, 257 size_t /* max_dead_capacity */,
248 size_t /* capacity */) 258 size_t /* capacity */)
249 259
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 // These are messages sent from the renderer to the browser process. 442 // These are messages sent from the renderer to the browser process.
433 443
434 // Provides the contents for the given page that was loaded recently. 444 // Provides the contents for the given page that was loaded recently.
435 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageContents, 445 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageContents,
436 GURL /* URL of the page */, 446 GURL /* URL of the page */,
437 int32 /* page id */, 447 int32 /* page id */,
438 string16 /* page contents */) 448 string16 /* page contents */)
439 449
440 // Notification that the language for the tab has been determined. 450 // Notification that the language for the tab has been determined.
441 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined, 451 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined,
442 std::string /* page ISO639_1 language code */, 452 LanguageDetectionDetails /* details about lang detection */,
443 bool /* whether the page can be translated */) 453 bool /* whether the page can be translated */)
444 454
445 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats, 455 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
446 WebKit::WebCache::UsageStats /* stats */) 456 WebKit::WebCache::UsageStats /* stats */)
447 457
448 // Tells the browser that content in the current page was blocked due to the 458 // Tells the browser that content in the current page was blocked due to the
449 // user's content settings. 459 // user's content settings.
450 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked, 460 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
451 ContentSettingsType, /* type of blocked content */ 461 ContentSettingsType, /* type of blocked content */
452 std::string /* resource identifier */) 462 std::string /* resource identifier */)
453 463
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 // previous SetCookie message to be processed. 745 // previous SetCookie message to be processed.
736 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 746 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
737 GURL /* url */, 747 GURL /* url */,
738 GURL /* first_party_for_cookies */, 748 GURL /* first_party_for_cookies */,
739 std::string /* cookies */) 749 std::string /* cookies */)
740 750
741 // Provide the browser process with current renderer framerate. 751 // Provide the browser process with current renderer framerate.
742 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 752 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
743 int /* routing id */, 753 int /* routing id */,
744 float /* frames per second */) 754 float /* frames per second */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698