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

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

Issue 7044095: Hooking MHTML generation to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor clean-up Created 9 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) 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // to true before any navigation occurs, and only set to false at most once 255 // to true before any navigation occurs, and only set to false at most once
255 // after that. 256 // after that.
256 IPC_MESSAGE_ROUTED1(ViewMsg_SetIsPrerendering, 257 IPC_MESSAGE_ROUTED1(ViewMsg_SetIsPrerendering,
257 bool /* whether the RenderView is prerendering */) 258 bool /* whether the RenderView is prerendering */)
258 259
259 // Sent on process startup to indicate whether this process is running in 260 // Sent on process startup to indicate whether this process is running in
260 // incognito mode. 261 // incognito mode.
261 IPC_MESSAGE_CONTROL1(ViewMsg_SetIsIncognitoProcess, 262 IPC_MESSAGE_CONTROL1(ViewMsg_SetIsIncognitoProcess,
262 bool /* is_incognito_processs */) 263 bool /* is_incognito_processs */)
263 264
265 // Instructs the renderer to save the current page to MHTML.
266 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML,
267 int /* job_id */,
268 IPC::PlatformFileForTransit /* file handle */)
269
264 //----------------------------------------------------------------------------- 270 //-----------------------------------------------------------------------------
265 // TabContents messages 271 // TabContents messages
266 // These are messages sent from the renderer to the browser process. 272 // These are messages sent from the renderer to the browser process.
267 273
268 // Provides the contents for the given page that was loaded recently. 274 // Provides the contents for the given page that was loaded recently.
269 IPC_MESSAGE_ROUTED3(ViewHostMsg_PageContents, 275 IPC_MESSAGE_ROUTED3(ViewHostMsg_PageContents,
270 GURL /* URL of the page */, 276 GURL /* URL of the page */,
271 int32 /* page id */, 277 int32 /* page id */,
272 string16 /* page contents */) 278 string16 /* page contents */)
273 279
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 480
475 // Sent by the renderer to check if a URL has permission to trigger a clipboard 481 // Sent by the renderer to check if a URL has permission to trigger a clipboard
476 // read/write operation from the DOM. 482 // read/write operation from the DOM.
477 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CanTriggerClipboardRead, 483 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CanTriggerClipboardRead,
478 GURL /* url */, 484 GURL /* url */,
479 bool /* allowed */) 485 bool /* allowed */)
480 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CanTriggerClipboardWrite, 486 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CanTriggerClipboardWrite,
481 GURL /* url */, 487 GURL /* url */,
482 bool /* allowed */) 488 bool /* allowed */)
483 489
490 // Notifies the browser that the page was or was not saved as MHTML.
491 IPC_MESSAGE_ROUTED2(ViewHostMsg_SavedPageAsMHTML,
492 int /* job_id*/,
493 bool /* success */)
494
484 // Suggest results ----------------------------------------------------------- 495 // Suggest results -----------------------------------------------------------
485 496
486 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetSuggestions, 497 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetSuggestions,
487 int32 /* page_id */, 498 int32 /* page_id */,
488 std::vector<std::string> /* suggestions */, 499 std::vector<std::string> /* suggestions */,
489 InstantCompleteBehavior) 500 InstantCompleteBehavior)
490 501
491 IPC_MESSAGE_ROUTED2(ViewHostMsg_InstantSupportDetermined, 502 IPC_MESSAGE_ROUTED2(ViewHostMsg_InstantSupportDetermined,
492 int32 /* page_id */, 503 int32 /* page_id */,
493 bool /* result */) 504 bool /* result */)
494 505
495 // JavaScript related messages ----------------------------------------------- 506 // JavaScript related messages -----------------------------------------------
496 507
497 // Notify the JavaScript engine in the render to change its parameters 508 // Notify the JavaScript engine in the render to change its parameters
498 // while performing stress testing. 509 // while performing stress testing.
499 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 510 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl,
500 int /* cmd */, 511 int /* cmd */,
501 int /* param */) 512 int /* param */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698