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

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

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Rebase Created 4 years, 2 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 <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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 311
313 // Records a sample string to a Rappor privacy-preserving metric. 312 // Records a sample string to a Rappor privacy-preserving metric.
314 // See: https://www.chromium.org/developers/design-documents/rappor 313 // See: https://www.chromium.org/developers/design-documents/rappor
315 virtual void RecordRappor(const std::string& metric, 314 virtual void RecordRappor(const std::string& metric,
316 const std::string& sample) {} 315 const std::string& sample) {}
317 316
318 // Records a domain and registry of a url to a Rappor privacy-preserving 317 // Records a domain and registry of a url to a Rappor privacy-preserving
319 // metric. See: https://www.chromium.org/developers/design-documents/rappor 318 // metric. See: https://www.chromium.org/developers/design-documents/rappor
320 virtual void RecordRapporURL(const std::string& metric, const GURL& url) {} 319 virtual void RecordRapporURL(const std::string& metric, const GURL& url) {}
321 320
322 // Allows an embedder to provide a blink::WebAppBannerClient.
323 virtual std::unique_ptr<blink::WebAppBannerClient> CreateAppBannerClient(
324 RenderFrame* render_frame);
325
326 // Gives the embedder a chance to add properties to the context menu. 321 // Gives the embedder a chance to add properties to the context menu.
327 // Currently only called when the context menu is for an image. 322 // Currently only called when the context menu is for an image.
328 virtual void AddImageContextMenuProperties( 323 virtual void AddImageContextMenuProperties(
329 const blink::WebURLResponse& response, 324 const blink::WebURLResponse& response,
330 std::map<std::string, std::string>* properties) {} 325 std::map<std::string, std::string>* properties) {}
331 326
332 // Notifies that a document element has been inserted in the frame's document. 327 // Notifies that a document element has been inserted in the frame's document.
333 // This may be called multiple times for the same document. This method may 328 // This may be called multiple times for the same document. This method may
334 // invalidate the frame. 329 // invalidate the frame.
335 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} 330 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {}
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 shell::InterfaceRegistry* interface_registry) {} 366 shell::InterfaceRegistry* interface_registry) {}
372 367
373 // Overwrites the given URL to use an HTML5 embed if possible. 368 // Overwrites the given URL to use an HTML5 embed if possible.
374 // An empty URL is returned if the URL is not overriden. 369 // An empty URL is returned if the URL is not overriden.
375 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); 370 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
376 }; 371 };
377 372
378 } // namespace content 373 } // namespace content
379 374
380 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 375 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698