OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // TODO(erg): This list has been temporarily annotated by erg while doing work | 11 // TODO(erg): This list has been temporarily annotated by erg while doing work |
12 // on which headers to pull out. | 12 // on which headers to pull out. |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "base/process.h" | 15 #include "base/process.h" |
16 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
17 #include "base/string16.h" | 17 #include "base/string16.h" |
18 #include "base/stringprintf.h" | 18 #include "base/stringprintf.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
21 #include "chrome/common/common_param_traits.h" | 21 #include "chrome/common/common_param_traits.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/common/common_param_traits.h" | 27 #include "content/common/common_param_traits.h" |
28 #include "ipc/ipc_message_macros.h" | 28 #include "ipc/ipc_message_macros.h" |
| 29 #include "ipc/ipc_platform_file.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" |
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
31 #include "ui/gfx/rect.h" | 32 #include "ui/gfx/rect.h" |
32 | 33 |
33 // Singly-included section for enums and custom IPC traits. | 34 // Singly-included section for enums and custom IPC traits. |
34 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 35 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
35 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 36 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
36 | 37 |
37 class SkBitmap; | 38 class SkBitmap; |
38 | 39 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 bool /* is_incognito_processs */) | 263 bool /* is_incognito_processs */) |
263 | 264 |
264 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent. | 265 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent. |
265 IPC_MESSAGE_ROUTED1(ViewMsg_SetAllowDisplayingInsecureContent, | 266 IPC_MESSAGE_ROUTED1(ViewMsg_SetAllowDisplayingInsecureContent, |
266 bool /* allowed */) | 267 bool /* allowed */) |
267 | 268 |
268 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent. | 269 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent. |
269 IPC_MESSAGE_ROUTED1(ViewMsg_SetAllowRunningInsecureContent, | 270 IPC_MESSAGE_ROUTED1(ViewMsg_SetAllowRunningInsecureContent, |
270 bool /* allowed */) | 271 bool /* allowed */) |
271 | 272 |
| 273 // Instructs the renderer to save the current page to MHTML. |
| 274 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
| 275 int /* job_id */, |
| 276 IPC::PlatformFileForTransit /* file handle */) |
| 277 |
272 //----------------------------------------------------------------------------- | 278 //----------------------------------------------------------------------------- |
273 // TabContents messages | 279 // TabContents messages |
274 // These are messages sent from the renderer to the browser process. | 280 // These are messages sent from the renderer to the browser process. |
275 | 281 |
276 // Provides the contents for the given page that was loaded recently. | 282 // Provides the contents for the given page that was loaded recently. |
277 IPC_MESSAGE_ROUTED3(ViewHostMsg_PageContents, | 283 IPC_MESSAGE_ROUTED3(ViewHostMsg_PageContents, |
278 GURL /* URL of the page */, | 284 GURL /* URL of the page */, |
279 int32 /* page id */, | 285 int32 /* page id */, |
280 string16 /* page contents */) | 286 string16 /* page contents */) |
281 | 287 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 bool /* allowed */) | 496 bool /* allowed */) |
491 | 497 |
492 // Sent when the renderer was prevented from displaying insecure content in | 498 // Sent when the renderer was prevented from displaying insecure content in |
493 // a secure page by a security policy. The page may appear incomplete. | 499 // a secure page by a security policy. The page may appear incomplete. |
494 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidBlockDisplayingInsecureContent) | 500 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidBlockDisplayingInsecureContent) |
495 | 501 |
496 // Sent when the renderer was prevented from running insecure content in | 502 // Sent when the renderer was prevented from running insecure content in |
497 // a secure origin by a security policy. The page may appear incomplete. | 503 // a secure origin by a security policy. The page may appear incomplete. |
498 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidBlockRunningInsecureContent) | 504 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidBlockRunningInsecureContent) |
499 | 505 |
| 506 // Notifies the browser that the page was or was not saved as MHTML. |
| 507 IPC_MESSAGE_ROUTED2(ViewHostMsg_SavedPageAsMHTML, |
| 508 int /* job_id*/, |
| 509 bool /* success */) |
| 510 |
500 // Suggest results ----------------------------------------------------------- | 511 // Suggest results ----------------------------------------------------------- |
501 | 512 |
502 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetSuggestions, | 513 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetSuggestions, |
503 int32 /* page_id */, | 514 int32 /* page_id */, |
504 std::vector<std::string> /* suggestions */, | 515 std::vector<std::string> /* suggestions */, |
505 InstantCompleteBehavior) | 516 InstantCompleteBehavior) |
506 | 517 |
507 IPC_MESSAGE_ROUTED2(ViewHostMsg_InstantSupportDetermined, | 518 IPC_MESSAGE_ROUTED2(ViewHostMsg_InstantSupportDetermined, |
508 int32 /* page_id */, | 519 int32 /* page_id */, |
509 bool /* result */) | 520 bool /* result */) |
510 | 521 |
511 // JavaScript related messages ----------------------------------------------- | 522 // JavaScript related messages ----------------------------------------------- |
512 | 523 |
513 // Notify the JavaScript engine in the render to change its parameters | 524 // Notify the JavaScript engine in the render to change its parameters |
514 // while performing stress testing. | 525 // while performing stress testing. |
515 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 526 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
516 int /* cmd */, | 527 int /* cmd */, |
517 int /* param */) | 528 int /* param */) |
OLD | NEW |