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

Side by Side Diff: public/web/WebContextMenuData.h

Issue 1112513005: Reload image bypassing the cache (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nit Created 5 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 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebContextMenuData_h 31 #ifndef WebContextMenuData_h
32 #define WebContextMenuData_h 32 #define WebContextMenuData_h
33 33
34 #include "../platform/WebPoint.h" 34 #include "../platform/WebPoint.h"
35 #include "../platform/WebReferrerPolicy.h" 35 #include "../platform/WebReferrerPolicy.h"
36 #include "../platform/WebString.h" 36 #include "../platform/WebString.h"
37 #include "../platform/WebURL.h" 37 #include "../platform/WebURL.h"
38 #include "../platform/WebURLResponse.h"
38 #include "../platform/WebVector.h" 39 #include "../platform/WebVector.h"
39 #include "WebHistoryItem.h" 40 #include "WebHistoryItem.h"
40 #include "WebMenuItemInfo.h" 41 #include "WebMenuItemInfo.h"
41 #include "WebNode.h" 42 #include "WebNode.h"
42 43
43 #define WEBCONTEXT_MEDIATYPEFILE_DEFINED 44 #define WEBCONTEXT_MEDIATYPEFILE_DEFINED
44 45
45 namespace blink { 46 namespace blink {
46 47
47 // This struct is passed to WebViewClient::ShowContextMenu. 48 // This struct is passed to WebViewClient::ShowContextMenu.
(...skipping 23 matching lines...) Expand all
71 72
72 // The absolute URL of the link that is in context. 73 // The absolute URL of the link that is in context.
73 WebURL linkURL; 74 WebURL linkURL;
74 75
75 // The absolute URL of the image/video/audio that is in context. 76 // The absolute URL of the image/video/audio that is in context.
76 WebURL srcURL; 77 WebURL srcURL;
77 78
78 // Whether the image in context is a null. 79 // Whether the image in context is a null.
79 bool hasImageContents; 80 bool hasImageContents;
80 81
82 // If |media_type| is MediaTypeImage and |has_image_contents| is true, then
esprehn 2015/07/15 20:53:58 mediaType and hasImageContents
83 // this contains the image's WebURLResponse::ExtraData.
84 WebURLResponse::ExtraData* imageResponseExtraData;
85
81 // The absolute URL of the page in context. 86 // The absolute URL of the page in context.
82 WebURL pageURL; 87 WebURL pageURL;
83 88
84 // The absolute keyword search URL including the %s search tag when the 89 // The absolute keyword search URL including the %s search tag when the
85 // "Add as search engine..." option is clicked (left empty if not used). 90 // "Add as search engine..." option is clicked (left empty if not used).
86 WebURL keywordURL; 91 WebURL keywordURL;
87 92
88 // The absolute URL of the subframe in context. 93 // The absolute URL of the subframe in context.
89 WebURL frameURL; 94 WebURL frameURL;
90 95
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 172
168 // Custom context menu items provided by the WebCore internals. 173 // Custom context menu items provided by the WebCore internals.
169 WebVector<WebMenuItemInfo> customItems; 174 WebVector<WebMenuItemInfo> customItems;
170 175
171 // The node that was clicked. 176 // The node that was clicked.
172 WebNode node; 177 WebNode node;
173 178
174 WebContextMenuData() 179 WebContextMenuData()
175 : mediaType(MediaTypeNone) 180 : mediaType(MediaTypeNone)
176 , hasImageContents(true) 181 , hasImageContents(true)
182 , imageResponseExtraData(nullptr)
177 , mediaFlags(MediaNone) 183 , mediaFlags(MediaNone)
178 , isSpellCheckingEnabled(false) 184 , isSpellCheckingEnabled(false)
179 , misspellingHash(0) 185 , misspellingHash(0)
180 , isEditable(false) 186 , isEditable(false)
181 , writingDirectionDefault(CheckableMenuItemDisabled) 187 , writingDirectionDefault(CheckableMenuItemDisabled)
182 , writingDirectionLeftToRight(CheckableMenuItemEnabled) 188 , writingDirectionLeftToRight(CheckableMenuItemEnabled)
183 , writingDirectionRightToLeft(CheckableMenuItemEnabled) 189 , writingDirectionRightToLeft(CheckableMenuItemEnabled)
184 , editFlags(0) { } 190 , editFlags(0) { }
185 }; 191 };
186 192
187 } // namespace blink 193 } // namespace blink
188 194
189 #endif 195 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698