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

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

Issue 14749005: Implement WebPrescientNetworking to trigger preconnect from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed leftover change / early return Created 7 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
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
(...skipping 14 matching lines...) Expand all
25 #include "chrome/common/search_provider.h" 25 #include "chrome/common/search_provider.h"
26 #include "chrome/common/search_types.h" 26 #include "chrome/common/search_types.h"
27 #include "chrome/common/translate_errors.h" 27 #include "chrome/common/translate_errors.h"
28 #include "content/public/common/common_param_traits.h" 28 #include "content/public/common/common_param_traits.h"
29 #include "ipc/ipc_channel_handle.h" 29 #include "ipc/ipc_channel_handle.h"
30 #include "ipc/ipc_message_macros.h" 30 #include "ipc/ipc_message_macros.h"
31 #include "ipc/ipc_platform_file.h" 31 #include "ipc/ipc_platform_file.h"
32 #include "third_party/skia/include/core/SkBitmap.h" 32 #include "third_party/skia/include/core/SkBitmap.h"
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
35 #include "third_party/WebKit/Source/Platform/chromium/public/WebPreconnectMotiva tion.h"
35 #include "ui/base/window_open_disposition.h" 36 #include "ui/base/window_open_disposition.h"
36 #include "ui/gfx/rect.h" 37 #include "ui/gfx/rect.h"
37 38
38 // Singly-included section for enums and custom IPC traits. 39 // Singly-included section for enums and custom IPC traits.
39 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ 40 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
40 #define CHROME_COMMON_RENDER_MESSAGES_H_ 41 #define CHROME_COMMON_RENDER_MESSAGES_H_
41 42
42 class SkBitmap; 43 class SkBitmap;
43 44
44 // Command values for the cmd parameter of the 45 // Command values for the cmd parameter of the
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 IPC_ENUM_TRAITS(InstantCompleteBehavior) 120 IPC_ENUM_TRAITS(InstantCompleteBehavior)
120 IPC_ENUM_TRAITS(InstantSizeUnits) 121 IPC_ENUM_TRAITS(InstantSizeUnits)
121 IPC_ENUM_TRAITS(InstantSuggestionType) 122 IPC_ENUM_TRAITS(InstantSuggestionType)
122 IPC_ENUM_TRAITS(OmniboxFocusState) 123 IPC_ENUM_TRAITS(OmniboxFocusState)
123 IPC_ENUM_TRAITS(search_provider::OSDDType) 124 IPC_ENUM_TRAITS(search_provider::OSDDType)
124 IPC_ENUM_TRAITS(search_provider::InstallState) 125 IPC_ENUM_TRAITS(search_provider::InstallState)
125 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment) 126 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
126 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling) 127 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
127 IPC_ENUM_TRAITS(TranslateErrors::Type) 128 IPC_ENUM_TRAITS(TranslateErrors::Type)
128 IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level) 129 IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level)
130 IPC_ENUM_TRAITS(WebKit::WebPreconnectMotivation)
129 131
130 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) 132 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
131 IPC_STRUCT_TRAITS_MEMBER(value) 133 IPC_STRUCT_TRAITS_MEMBER(value)
132 IPC_STRUCT_TRAITS_END() 134 IPC_STRUCT_TRAITS_END()
133 135
134 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. 136 // Output parameters for ChromeViewHostMsg_GetPluginInfo message.
135 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) 137 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output)
136 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) 138 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status)
137 IPC_STRUCT_MEMBER(webkit::WebPluginInfo, plugin) 139 IPC_STRUCT_MEMBER(webkit::WebPluginInfo, plugin)
138 IPC_STRUCT_MEMBER(std::string, actual_mime_type) 140 IPC_STRUCT_MEMBER(std::string, actual_mime_type)
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 // Sends back stats about the V8 heap. 617 // Sends back stats about the V8 heap.
616 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats, 618 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
617 int /* size of heap (allocated from the OS) */, 619 int /* size of heap (allocated from the OS) */,
618 int /* bytes in use */) 620 int /* bytes in use */)
619 621
620 // Request for a DNS prefetch of the names in the array. 622 // Request for a DNS prefetch of the names in the array.
621 // NameList is typedef'ed std::vector<std::string> 623 // NameList is typedef'ed std::vector<std::string>
622 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch, 624 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
623 std::vector<std::string> /* hostnames */) 625 std::vector<std::string> /* hostnames */)
624 626
627 // Request for preconnect to host providing resource specified by URL
628 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_Preconnect,
629 GURL /* preconnect target url */,
630 WebKit::WebPreconnectMotivation)
631
625 // Notifies when a plugin couldn't be loaded because it's outdated. 632 // Notifies when a plugin couldn't be loaded because it's outdated.
626 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, 633 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
627 int /* placeholder ID */, 634 int /* placeholder ID */,
628 std::string /* plug-in group identifier */) 635 std::string /* plug-in group identifier */)
629 636
630 // Notifies when a plugin couldn't be loaded because it requires 637 // Notifies when a plugin couldn't be loaded because it requires
631 // user authorization. 638 // user authorization.
632 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin, 639 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
633 string16 /* name */, 640 string16 /* name */,
634 std::string /* plug-in group identifier */) 641 std::string /* plug-in group identifier */)
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 // previous SetCookie message to be processed. 746 // previous SetCookie message to be processed.
740 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 747 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
741 GURL /* url */, 748 GURL /* url */,
742 GURL /* first_party_for_cookies */, 749 GURL /* first_party_for_cookies */,
743 std::string /* cookies */) 750 std::string /* cookies */)
744 751
745 // Provide the browser process with current renderer framerate. 752 // Provide the browser process with current renderer framerate.
746 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 753 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
747 int /* routing id */, 754 int /* routing id */,
748 float /* frames per second */) 755 float /* frames per second */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698