| OLD | NEW |
| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 12 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 13 #include "content/public/common/content_client.h" | 14 #include "content/public/common/content_client.h" |
| 14 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
| 15 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 16 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
| 16 #include "third_party/WebKit/public/web/WebNavigationType.h" | 17 #include "third_party/WebKit/public/web/WebNavigationType.h" |
| 17 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" | 18 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" |
| 18 #include "ui/base/page_transition_types.h" | 19 #include "ui/base/page_transition_types.h" |
| 19 #include "v8/include/v8.h" | 20 #include "v8/include/v8.h" |
| 20 | 21 |
| 21 class GURL; | 22 class GURL; |
| 22 class SkBitmap; | 23 class SkBitmap; |
| 23 | 24 |
| 24 namespace base { | 25 namespace base { |
| 25 class FilePath; | 26 class FilePath; |
| 26 class MessageLoop; | 27 class MessageLoop; |
| 27 } | 28 } |
| 28 | 29 |
| 29 namespace blink { | 30 namespace blink { |
| 30 class WebAudioDevice; | 31 class WebAudioDevice; |
| 31 class WebClipboard; | 32 class WebClipboard; |
| 32 class WebFrame; | 33 class WebFrame; |
| 33 class WebLocalFrame; | 34 class WebLocalFrame; |
| 34 class WebMIDIAccessor; | 35 class WebMIDIAccessor; |
| 35 class WebMIDIAccessorClient; | 36 class WebMIDIAccessorClient; |
| 36 class WebMediaStreamCenter; | 37 class WebMediaStreamCenter; |
| 37 class WebMediaStreamCenterClient; | 38 class WebMediaStreamCenterClient; |
| 38 class WebPlugin; | 39 class WebPlugin; |
| 39 class WebPluginContainer; | 40 class WebPluginContainer; |
| 41 class WebPluginPlaceholder; |
| 40 class WebPrescientNetworking; | 42 class WebPrescientNetworking; |
| 41 class WebRTCPeerConnectionHandler; | 43 class WebRTCPeerConnectionHandler; |
| 42 class WebRTCPeerConnectionHandlerClient; | 44 class WebRTCPeerConnectionHandlerClient; |
| 43 class WebSpeechSynthesizer; | 45 class WebSpeechSynthesizer; |
| 44 class WebSpeechSynthesizerClient; | 46 class WebSpeechSynthesizerClient; |
| 45 class WebThemeEngine; | 47 class WebThemeEngine; |
| 46 class WebURLRequest; | 48 class WebURLRequest; |
| 47 class WebWorkerPermissionClientProxy; | 49 class WebWorkerPermissionClientProxy; |
| 48 struct WebPluginParams; | 50 struct WebPluginParams; |
| 49 struct WebURLError; | 51 struct WebURLError; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 80 // Sets a number of views/tabs opened in this process. | 82 // Sets a number of views/tabs opened in this process. |
| 81 virtual void SetNumberOfViews(int number_of_views) {} | 83 virtual void SetNumberOfViews(int number_of_views) {} |
| 82 | 84 |
| 83 // Returns the bitmap to show when a plugin crashed, or NULL for none. | 85 // Returns the bitmap to show when a plugin crashed, or NULL for none. |
| 84 virtual SkBitmap* GetSadPluginBitmap(); | 86 virtual SkBitmap* GetSadPluginBitmap(); |
| 85 | 87 |
| 86 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for | 88 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for |
| 87 // none. | 89 // none. |
| 88 virtual SkBitmap* GetSadWebViewBitmap(); | 90 virtual SkBitmap* GetSadWebViewBitmap(); |
| 89 | 91 |
| 92 // Allows the embedder to create a plugin placeholder instead of a plugin. |
| 93 // Called before OverrideCreatePlugin. May return null to decline to provide |
| 94 // a plugin placeholder. |
| 95 virtual scoped_ptr<blink::WebPluginPlaceholder> CreatePluginPlaceholder( |
| 96 RenderFrame* render_frame, |
| 97 blink::WebLocalFrame* frame, |
| 98 const blink::WebPluginParams& params); |
| 99 |
| 90 // Allows the embedder to override creating a plugin. If it returns true, then | 100 // Allows the embedder to override creating a plugin. If it returns true, then |
| 91 // |plugin| will contain the created plugin, although it could be NULL. If it | 101 // |plugin| will contain the created plugin, although it could be NULL. If it |
| 92 // returns false, the content layer will create the plugin. | 102 // returns false, the content layer will create the plugin. |
| 93 virtual bool OverrideCreatePlugin( | 103 virtual bool OverrideCreatePlugin( |
| 94 RenderFrame* render_frame, | 104 RenderFrame* render_frame, |
| 95 blink::WebLocalFrame* frame, | 105 blink::WebLocalFrame* frame, |
| 96 const blink::WebPluginParams& params, | 106 const blink::WebPluginParams& params, |
| 97 blink::WebPlugin** plugin); | 107 blink::WebPlugin** plugin); |
| 98 | 108 |
| 99 // Creates a replacement plug-in that is shown when the plug-in at |file_path| | 109 // Creates a replacement plug-in that is shown when the plug-in at |file_path| |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 285 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
| 276 | 286 |
| 277 // Returns a user agent override specific for |url|, or empty string if | 287 // Returns a user agent override specific for |url|, or empty string if |
| 278 // default user agent should be used. | 288 // default user agent should be used. |
| 279 virtual std::string GetUserAgentOverrideForURL(const GURL& url); | 289 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
| 280 }; | 290 }; |
| 281 | 291 |
| 282 } // namespace content | 292 } // namespace content |
| 283 | 293 |
| 284 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 294 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |