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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Add TODO Created 4 years, 1 month 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 14 matching lines...) Expand all
25 25
26 class GURL; 26 class GURL;
27 class SkBitmap; 27 class SkBitmap;
28 28
29 namespace base { 29 namespace base {
30 class FilePath; 30 class FilePath;
31 class SingleThreadTaskRunner; 31 class SingleThreadTaskRunner;
32 } 32 }
33 33
34 namespace blink { 34 namespace blink {
35 class WebAppBannerClient;
36 class WebAudioDevice; 35 class WebAudioDevice;
37 class WebClipboard; 36 class WebClipboard;
38 class WebFrame; 37 class WebFrame;
39 class WebLocalFrame; 38 class WebLocalFrame;
40 class WebMIDIAccessor; 39 class WebMIDIAccessor;
41 class WebMIDIAccessorClient; 40 class WebMIDIAccessorClient;
42 class WebMediaStreamCenter; 41 class WebMediaStreamCenter;
43 class WebMediaStreamCenterClient; 42 class WebMediaStreamCenterClient;
44 class WebPlugin; 43 class WebPlugin;
45 class WebPluginContainer; 44 class WebPluginContainer;
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 321
323 // Records a sample string to a Rappor privacy-preserving metric. 322 // Records a sample string to a Rappor privacy-preserving metric.
324 // See: https://www.chromium.org/developers/design-documents/rappor 323 // See: https://www.chromium.org/developers/design-documents/rappor
325 virtual void RecordRappor(const std::string& metric, 324 virtual void RecordRappor(const std::string& metric,
326 const std::string& sample) {} 325 const std::string& sample) {}
327 326
328 // Records a domain and registry of a url to a Rappor privacy-preserving 327 // Records a domain and registry of a url to a Rappor privacy-preserving
329 // metric. See: https://www.chromium.org/developers/design-documents/rappor 328 // metric. See: https://www.chromium.org/developers/design-documents/rappor
330 virtual void RecordRapporURL(const std::string& metric, const GURL& url) {} 329 virtual void RecordRapporURL(const std::string& metric, const GURL& url) {}
331 330
332 // Allows an embedder to provide a blink::WebAppBannerClient.
333 virtual std::unique_ptr<blink::WebAppBannerClient> CreateAppBannerClient(
334 RenderFrame* render_frame);
335
336 // Gives the embedder a chance to add properties to the context menu. 331 // Gives the embedder a chance to add properties to the context menu.
337 // Currently only called when the context menu is for an image. 332 // Currently only called when the context menu is for an image.
338 virtual void AddImageContextMenuProperties( 333 virtual void AddImageContextMenuProperties(
339 const blink::WebURLResponse& response, 334 const blink::WebURLResponse& response,
340 std::map<std::string, std::string>* properties) {} 335 std::map<std::string, std::string>* properties) {}
341 336
342 // Notifies that a document element has been inserted in the frame's document. 337 // Notifies that a document element has been inserted in the frame's document.
343 // This may be called multiple times for the same document. This method may 338 // This may be called multiple times for the same document. This method may
344 // invalidate the frame. 339 // invalidate the frame.
345 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} 340 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {}
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 service_manager::InterfaceRegistry* interface_registry) {} 376 service_manager::InterfaceRegistry* interface_registry) {}
382 377
383 // Overwrites the given URL to use an HTML5 embed if possible. 378 // Overwrites the given URL to use an HTML5 embed if possible.
384 // An empty URL is returned if the URL is not overriden. 379 // An empty URL is returned if the URL is not overriden.
385 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); 380 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
386 }; 381 };
387 382
388 } // namespace content 383 } // namespace content
389 384
390 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 385 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « components/test_runner/web_test_interfaces.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698