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

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

Issue 10214007: Add an IPC channel between the NaCl loader process and the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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/file_path.h" 12 #include "base/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/nacl_types.h" 23 #include "chrome/common/nacl_types.h"
24 #include "chrome/common/search_provider.h" 24 #include "chrome/common/search_provider.h"
25 #include "chrome/common/thumbnail_score.h" 25 #include "chrome/common/thumbnail_score.h"
26 #include "chrome/common/translate_errors.h" 26 #include "chrome/common/translate_errors.h"
27 #include "content/public/common/common_param_traits.h" 27 #include "content/public/common/common_param_traits.h"
28 #include "content/public/common/webkit_param_traits.h" 28 #include "content/public/common/webkit_param_traits.h"
29 #include "ipc/ipc_channel_handle.h"
29 #include "ipc/ipc_message_macros.h" 30 #include "ipc/ipc_message_macros.h"
30 #include "ipc/ipc_platform_file.h" 31 #include "ipc/ipc_platform_file.h"
31 #include "third_party/skia/include/core/SkBitmap.h" 32 #include "third_party/skia/include/core/SkBitmap.h"
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
34 #include "ui/gfx/rect.h" 35 #include "ui/gfx/rect.h"
35 36
36 // Singly-included section for enums and custom IPC traits. 37 // Singly-included section for enums and custom IPC traits.
37 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ 38 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
38 #define CHROME_COMMON_RENDER_MESSAGES_H_ 39 #define CHROME_COMMON_RENDER_MESSAGES_H_
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 SkBitmap /* bitmap */) 479 SkBitmap /* bitmap */)
479 480
480 // A message for an external host. 481 // A message for an external host.
481 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost, 482 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost,
482 std::string /* message */, 483 std::string /* message */,
483 std::string /* origin */, 484 std::string /* origin */,
484 std::string /* target */) 485 std::string /* target */)
485 486
486 // A renderer sends this to the browser process when it wants to start 487 // A renderer sends this to the browser process when it wants to start
487 // a new instance of the Native Client process. The browser will launch 488 // a new instance of the Native Client process. The browser will launch
488 // the process and return a handle to an IMC channel. 489 // the process and return a handle to an IMC channel.
brettw 2012/06/21 20:59:44 Can you add a note here about the ipc_channel_hand
bbudge 2012/06/21 21:20:01 Done.
489 IPC_SYNC_MESSAGE_CONTROL2_1(ChromeViewHostMsg_LaunchNaCl, 490 IPC_SYNC_MESSAGE_CONTROL2_2(ChromeViewHostMsg_LaunchNaCl,
490 GURL /* manifest_url */, 491 GURL /* manifest_url */,
491 int /* socket count */, 492 int /* socket count */,
492 std::vector<nacl::FileDescriptor> 493 std::vector<nacl::FileDescriptor>
493 /* imc channel handles */) 494 /* imc channel handles */,
495 IPC::ChannelHandle /* ipc_channel_handle */)
494 496
495 // Notification that the page has an OpenSearch description document 497 // Notification that the page has an OpenSearch description document
496 // associated with it. 498 // associated with it.
497 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD, 499 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
498 int32 /* page_id */, 500 int32 /* page_id */,
499 GURL /* url of OS description document */, 501 GURL /* url of OS description document */,
500 search_provider::OSDDType) 502 search_provider::OSDDType)
501 503
502 // Find out if the given url's security origin is installed as a search 504 // Find out if the given url's security origin is installed as a search
503 // provider. 505 // provider.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 // previous SetCookie message to be processed. 624 // previous SetCookie message to be processed.
623 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 625 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
624 GURL /* url */, 626 GURL /* url */,
625 GURL /* first_party_for_cookies */, 627 GURL /* first_party_for_cookies */,
626 std::string /* cookies */) 628 std::string /* cookies */)
627 629
628 // Provide the browser process with current renderer framerate. 630 // Provide the browser process with current renderer framerate.
629 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 631 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
630 int /* routing id */, 632 int /* routing id */,
631 float /* frames per second */) 633 float /* frames per second */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698