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

Side by Side 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: Addressing comments 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 // 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 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <map>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
14 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
15 #include "content/public/common/content_client.h" 16 #include "content/public/common/content_client.h"
16 #include "ipc/ipc_message.h" 17 #include "ipc/ipc_message.h"
17 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 18 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
(...skipping 21 matching lines...) Expand all
39 class WebMediaStreamCenterClient; 40 class WebMediaStreamCenterClient;
40 class WebPlugin; 41 class WebPlugin;
41 class WebPluginContainer; 42 class WebPluginContainer;
42 class WebPluginPlaceholder; 43 class WebPluginPlaceholder;
43 class WebPrescientNetworking; 44 class WebPrescientNetworking;
44 class WebRTCPeerConnectionHandler; 45 class WebRTCPeerConnectionHandler;
45 class WebRTCPeerConnectionHandlerClient; 46 class WebRTCPeerConnectionHandlerClient;
46 class WebSpeechSynthesizer; 47 class WebSpeechSynthesizer;
47 class WebSpeechSynthesizerClient; 48 class WebSpeechSynthesizerClient;
48 class WebThemeEngine; 49 class WebThemeEngine;
50 class WebURLResponse;
49 class WebURLRequest; 51 class WebURLRequest;
50 class WebWorkerContentSettingsClientProxy; 52 class WebWorkerContentSettingsClientProxy;
51 struct WebPluginParams; 53 struct WebPluginParams;
52 struct WebURLError; 54 struct WebURLError;
53 } 55 }
54 56
55 namespace media { 57 namespace media {
56 class MediaLog; 58 class MediaLog;
57 class RendererFactory; 59 class RendererFactory;
58 struct KeySystemInfo; 60 struct KeySystemInfo;
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 virtual std::string GetUserAgentOverrideForURL(const GURL& url); 295 virtual std::string GetUserAgentOverrideForURL(const GURL& url);
294 296
295 // Records a sample string to a Rappor privacy-preserving metric. 297 // Records a sample string to a Rappor privacy-preserving metric.
296 // See: https://www.chromium.org/developers/design-documents/rappor 298 // See: https://www.chromium.org/developers/design-documents/rappor
297 virtual void RecordRappor(const std::string& metric, 299 virtual void RecordRappor(const std::string& metric,
298 const std::string& sample) {} 300 const std::string& sample) {}
299 301
300 // Records a domain and registry of a url to a Rappor privacy-preserving 302 // Records a domain and registry of a url to a Rappor privacy-preserving
301 // metric. See: https://www.chromium.org/developers/design-documents/rappor 303 // metric. See: https://www.chromium.org/developers/design-documents/rappor
302 virtual void RecordRapporURL(const std::string& metric, const GURL& url) {} 304 virtual void RecordRapporURL(const std::string& metric, const GURL& url) {}
305
306 // Gives the embedder a chance to add properties to the context menu.
307 virtual void AddContextMenuProperties(
308 const blink::WebURLResponse& response,
309 std::map<std::string, std::string>* properties) {}
303 }; 310 };
304 311
305 } // namespace content 312 } // namespace content
306 313
307 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 314 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698