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

Side by Side Diff: content/common/resource_messages.h

Issue 9808029: Prepending view-source: does not load the source of the userscript. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed comments. Created 8 years, 8 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 // IPC messages for resource loading. 5 // IPC messages for resource loading.
6 6
7 // Multiply-included message file, hence no include guard. 7 // Multiply-included message file, hence no include guard.
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "content/public/common/common_param_traits.h" 9 #include "content/public/common/common_param_traits.h"
10 #include "content/public/common/resource_response.h" 10 #include "content/public/common/resource_response.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 IPC_STRUCT_TRAITS_END() 51 IPC_STRUCT_TRAITS_END()
52 52
53 // Parameters for a resource request. 53 // Parameters for a resource request.
54 IPC_STRUCT_BEGIN(ResourceHostMsg_Request) 54 IPC_STRUCT_BEGIN(ResourceHostMsg_Request)
55 // The request method: GET, POST, etc. 55 // The request method: GET, POST, etc.
56 IPC_STRUCT_MEMBER(std::string, method) 56 IPC_STRUCT_MEMBER(std::string, method)
57 57
58 // The requested URL. 58 // The requested URL.
59 IPC_STRUCT_MEMBER(GURL, url) 59 IPC_STRUCT_MEMBER(GURL, url)
60 60
61 // Whether or not we should allow the URL to download.
62 IPC_STRUCT_MEMBER(bool, allow_download)
darin (slow to review) 2012/04/03 21:56:20 any rhyme or reason for inserting this field here
63
61 // Usually the URL of the document in the top-level window, which may be 64 // Usually the URL of the document in the top-level window, which may be
62 // checked by the third-party cookie blocking policy. Leaving it empty may 65 // checked by the third-party cookie blocking policy. Leaving it empty may
63 // lead to undesired cookie blocking. Third-party cookie blocking can be 66 // lead to undesired cookie blocking. Third-party cookie blocking can be
64 // bypassed by setting first_party_for_cookies = url, but this should ideally 67 // bypassed by setting first_party_for_cookies = url, but this should ideally
65 // only be done if there really is no way to determine the correct value. 68 // only be done if there really is no way to determine the correct value.
66 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) 69 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies)
67 70
68 // The referrer to use (may be empty). 71 // The referrer to use (may be empty).
69 IPC_STRUCT_MEMBER(GURL, referrer) 72 IPC_STRUCT_MEMBER(GURL, referrer)
70 73
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 int /* request_id */) 216 int /* request_id */)
214 217
215 // Sent by the renderer process to acknowledge receipt of a 218 // Sent by the renderer process to acknowledge receipt of a
216 // UploadProgress message. 219 // UploadProgress message.
217 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, 220 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK,
218 int /* request_id */) 221 int /* request_id */)
219 222
220 // Sent when the renderer process deletes a resource loader. 223 // Sent when the renderer process deletes a resource loader.
221 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 224 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
222 int /* request_id */) 225 int /* request_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698