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

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: Using ExtraData 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
83 // this contains the image's WebURLResponse::ExtraData.
84 WebURLResponse::ExtraData* imageResponseExtraData;
Nate Chapin 2015/05/05 22:03:49 Initialize this to nullptr in constructor
megjablon 2015/05/06 18:33:02 Done.
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 , isEditable(false) 185 , isEditable(false)
181 , writingDirectionDefault(CheckableMenuItemDisabled) 186 , writingDirectionDefault(CheckableMenuItemDisabled)
182 , writingDirectionLeftToRight(CheckableMenuItemEnabled) 187 , writingDirectionLeftToRight(CheckableMenuItemEnabled)
183 , writingDirectionRightToLeft(CheckableMenuItemEnabled) 188 , writingDirectionRightToLeft(CheckableMenuItemEnabled)
184 , editFlags(0) { } 189 , editFlags(0) { }
185 }; 190 };
186 191
187 } // namespace blink 192 } // namespace blink
188 193
189 #endif 194 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698