| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
| 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "webkit/glue/webaccessibility.h" | 35 #include "webkit/glue/webaccessibility.h" |
| 36 #include "webkit/glue/webdropdata.h" | 36 #include "webkit/glue/webdropdata.h" |
| 37 #include "webkit/glue/webplugin.h" | 37 #include "webkit/glue/webplugin.h" |
| 38 #include "webkit/glue/webpreferences.h" | 38 #include "webkit/glue/webpreferences.h" |
| 39 #include "webkit/glue/webview_delegate.h" | 39 #include "webkit/glue/webview_delegate.h" |
| 40 | 40 |
| 41 #if defined(OS_POSIX) | 41 #if defined(OS_POSIX) |
| 42 #include "skia/include/SkBitmap.h" | 42 #include "skia/include/SkBitmap.h" |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 namespace base { |
| 46 class Time; |
| 47 } |
| 48 |
| 45 struct ViewHostMsg_UpdateFeedList_Params { | 49 struct ViewHostMsg_UpdateFeedList_Params { |
| 46 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 50 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
| 47 // Forward, and Reload navigations should have a valid page_id. If the load | 51 // Forward, and Reload navigations should have a valid page_id. If the load |
| 48 // succeeds, then this page_id will be reflected in the resulting | 52 // succeeds, then this page_id will be reflected in the resulting |
| 49 // ViewHostMsg_FrameNavigate message. | 53 // ViewHostMsg_FrameNavigate message. |
| 50 int32 page_id; | 54 int32 page_id; |
| 51 | 55 |
| 52 // The list of available feeds. | 56 // The list of available feeds. |
| 53 scoped_refptr<FeedList> feedlist; | 57 scoped_refptr<FeedList> feedlist; |
| 54 }; | 58 }; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 71 | 75 |
| 72 // The type of transition. | 76 // The type of transition. |
| 73 PageTransition::Type transition; | 77 PageTransition::Type transition; |
| 74 | 78 |
| 75 // Opaque history state (received by ViewHostMsg_UpdateState). | 79 // Opaque history state (received by ViewHostMsg_UpdateState). |
| 76 std::string state; | 80 std::string state; |
| 77 | 81 |
| 78 // Specifies if the URL should be loaded using 'reload' semantics (i.e., | 82 // Specifies if the URL should be loaded using 'reload' semantics (i.e., |
| 79 // bypassing any locally cached content). | 83 // bypassing any locally cached content). |
| 80 bool reload; | 84 bool reload; |
| 85 |
| 86 // The time the request was created |
| 87 base::Time request_time; |
| 81 }; | 88 }; |
| 82 | 89 |
| 83 // Parameters structure for ViewHostMsg_FrameNavigate, which has too many data | 90 // Parameters structure for ViewHostMsg_FrameNavigate, which has too many data |
| 84 // parameters to be reasonably put in a predefined IPC message. | 91 // parameters to be reasonably put in a predefined IPC message. |
| 85 struct ViewHostMsg_FrameNavigate_Params { | 92 struct ViewHostMsg_FrameNavigate_Params { |
| 86 // Page ID of this navigation. The renderer creates a new unique page ID | 93 // Page ID of this navigation. The renderer creates a new unique page ID |
| 87 // anytime a new session history entry is created. This means you'll get new | 94 // anytime a new session history entry is created. This means you'll get new |
| 88 // page IDs for user actions, and the old page IDs will be reloaded when | 95 // page IDs for user actions, and the old page IDs will be reloaded when |
| 89 // iframes are loaded automatically. | 96 // iframes are loaded automatically. |
| 90 int32 page_id; | 97 int32 page_id; |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 template <> | 662 template <> |
| 656 struct ParamTraits<ViewMsg_Navigate_Params> { | 663 struct ParamTraits<ViewMsg_Navigate_Params> { |
| 657 typedef ViewMsg_Navigate_Params param_type; | 664 typedef ViewMsg_Navigate_Params param_type; |
| 658 static void Write(Message* m, const param_type& p) { | 665 static void Write(Message* m, const param_type& p) { |
| 659 WriteParam(m, p.page_id); | 666 WriteParam(m, p.page_id); |
| 660 WriteParam(m, p.url); | 667 WriteParam(m, p.url); |
| 661 WriteParam(m, p.referrer); | 668 WriteParam(m, p.referrer); |
| 662 WriteParam(m, p.transition); | 669 WriteParam(m, p.transition); |
| 663 WriteParam(m, p.state); | 670 WriteParam(m, p.state); |
| 664 WriteParam(m, p.reload); | 671 WriteParam(m, p.reload); |
| 672 WriteParam(m, p.request_time); |
| 665 } | 673 } |
| 666 static bool Read(const Message* m, void** iter, param_type* p) { | 674 static bool Read(const Message* m, void** iter, param_type* p) { |
| 667 return | 675 return |
| 668 ReadParam(m, iter, &p->page_id) && | 676 ReadParam(m, iter, &p->page_id) && |
| 669 ReadParam(m, iter, &p->url) && | 677 ReadParam(m, iter, &p->url) && |
| 670 ReadParam(m, iter, &p->referrer) && | 678 ReadParam(m, iter, &p->referrer) && |
| 671 ReadParam(m, iter, &p->transition) && | 679 ReadParam(m, iter, &p->transition) && |
| 672 ReadParam(m, iter, &p->state) && | 680 ReadParam(m, iter, &p->state) && |
| 673 ReadParam(m, iter, &p->reload); | 681 ReadParam(m, iter, &p->reload) && |
| 682 ReadParam(m, iter, &p->request_time); |
| 674 } | 683 } |
| 675 static void Log(const param_type& p, std::wstring* l) { | 684 static void Log(const param_type& p, std::wstring* l) { |
| 676 l->append(L"("); | 685 l->append(L"("); |
| 677 LogParam(p.page_id, l); | 686 LogParam(p.page_id, l); |
| 678 l->append(L", "); | 687 l->append(L", "); |
| 679 LogParam(p.url, l); | 688 LogParam(p.url, l); |
| 680 l->append(L", "); | 689 l->append(L", "); |
| 681 LogParam(p.transition, l); | 690 LogParam(p.transition, l); |
| 682 l->append(L", "); | 691 l->append(L", "); |
| 683 LogParam(p.state, l); | 692 LogParam(p.state, l); |
| 684 l->append(L", "); | 693 l->append(L", "); |
| 685 LogParam(p.reload, l); | 694 LogParam(p.reload, l); |
| 695 l->append(L", "); |
| 696 LogParam(p.request_time, l); |
| 686 l->append(L")"); | 697 l->append(L")"); |
| 687 } | 698 } |
| 688 }; | 699 }; |
| 689 | 700 |
| 690 // Traits for PasswordForm_Params structure to pack/unpack. | 701 // Traits for PasswordForm_Params structure to pack/unpack. |
| 691 template <> | 702 template <> |
| 692 struct ParamTraits<PasswordForm> { | 703 struct ParamTraits<PasswordForm> { |
| 693 typedef PasswordForm param_type; | 704 typedef PasswordForm param_type; |
| 694 static void Write(Message* m, const param_type& p) { | 705 static void Write(Message* m, const param_type& p) { |
| 695 WriteParam(m, p.signon_realm); | 706 WriteParam(m, p.signon_realm); |
| (...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1768 } | 1779 } |
| 1769 }; | 1780 }; |
| 1770 | 1781 |
| 1771 } // namespace IPC | 1782 } // namespace IPC |
| 1772 | 1783 |
| 1773 | 1784 |
| 1774 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 1785 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 1775 #include "chrome/common/ipc_message_macros.h" | 1786 #include "chrome/common/ipc_message_macros.h" |
| 1776 | 1787 |
| 1777 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1788 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |