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

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, 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 | 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 476
476 // A message for an external host. 477 // A message for an external host.
477 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost, 478 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost,
478 std::string /* message */, 479 std::string /* message */,
479 std::string /* origin */, 480 std::string /* origin */,
480 std::string /* target */) 481 std::string /* target */)
481 482
482 // A renderer sends this to the browser process when it wants to start 483 // A renderer sends this to the browser process when it wants to start
483 // a new instance of the Native Client process. The browser will launch 484 // a new instance of the Native Client process. The browser will launch
484 // the process and return a handle to an IMC channel. 485 // the process and return a handle to an IMC channel.
485 IPC_SYNC_MESSAGE_CONTROL2_1(ChromeViewHostMsg_LaunchNaCl, 486 IPC_SYNC_MESSAGE_CONTROL2_3(ChromeViewHostMsg_LaunchNaCl,
486 GURL /* manifest_url */, 487 GURL /* manifest_url */,
487 int /* socket count */, 488 int /* socket count */,
488 std::vector<nacl::FileDescriptor> 489 std::vector<nacl::FileDescriptor>
489 /* imc channel handles */) 490 /* imc channel handles */,
491 IPC::ChannelHandle /* ipc_channel_handle */,
492 base::ProcessId /* NaCl process id */)
490 493
491 // Notification that the page has an OpenSearch description document 494 // Notification that the page has an OpenSearch description document
492 // associated with it. 495 // associated with it.
493 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD, 496 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
494 int32 /* page_id */, 497 int32 /* page_id */,
495 GURL /* url of OS description document */, 498 GURL /* url of OS description document */,
496 search_provider::OSDDType) 499 search_provider::OSDDType)
497 500
498 // Find out if the given url's security origin is installed as a search 501 // Find out if the given url's security origin is installed as a search
499 // provider. 502 // provider.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 // previous SetCookie message to be processed. 621 // previous SetCookie message to be processed.
619 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 622 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
620 GURL /* url */, 623 GURL /* url */,
621 GURL /* first_party_for_cookies */, 624 GURL /* first_party_for_cookies */,
622 std::string /* cookies */) 625 std::string /* cookies */)
623 626
624 // Provide the browser process with current renderer framerate. 627 // Provide the browser process with current renderer framerate.
625 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 628 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
626 int /* routing id */, 629 int /* routing id */,
627 float /* frames per second */) 630 float /* frames per second */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698