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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 1105263004: "Load image" context menu item to reload a LoFi image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename AddContextMenuProperties to AddImageContextMenuProperties 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/context_menu_params.h ('k') | content/renderer/context_menu_params_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 9e1e7d73e617ecfd1b584be661526f24ec7a9483..d84e4cfbc55c99c2242ba4ee305da3b9cd452796 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
#define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
+#include <map>
#include <string>
#include <vector>
@@ -47,6 +48,7 @@ class WebRTCPeerConnectionHandlerClient;
class WebSpeechSynthesizer;
class WebSpeechSynthesizerClient;
class WebThemeEngine;
+class WebURLResponse;
class WebURLRequest;
class WebWorkerContentSettingsClientProxy;
struct WebPluginParams;
@@ -305,6 +307,11 @@ class CONTENT_EXPORT ContentRendererClient {
// Allows an embedder to provide a blink::WebAppBannerClient.
virtual scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(
RenderFrame* render_frame);
+
+ // Gives the embedder a chance to add properties to the context menu.
Charlie Reis 2015/05/15 23:21:17 nit: Mention that this is currently only called wh
megjablon 2015/05/15 23:36:54 Done.
+ virtual void AddImageContextMenuProperties(
+ const blink::WebURLResponse& response,
+ std::map<std::string, std::string>* properties) {}
};
} // namespace content
« no previous file with comments | « content/public/common/context_menu_params.h ('k') | content/renderer/context_menu_params_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698