| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
| 19 #include "content/public/common/content_client.h" | 19 #include "content/public/common/content_client.h" |
| 20 #include "ipc/ipc_sender.h" |
| 20 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 21 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 21 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 22 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
| 22 #include "third_party/WebKit/public/web/WebNavigationType.h" | 23 #include "third_party/WebKit/public/web/WebNavigationType.h" |
| 23 #include "ui/base/page_transition_types.h" | 24 #include "ui/base/page_transition_types.h" |
| 24 #include "v8/include/v8.h" | 25 #include "v8/include/v8.h" |
| 25 | 26 |
| 26 class GURL; | 27 class GURL; |
| 27 class SkBitmap; | 28 class SkBitmap; |
| 28 | 29 |
| 29 namespace base { | 30 namespace base { |
| 30 class FilePath; | 31 class FilePath; |
| 31 class SingleThreadTaskRunner; | 32 class SingleThreadTaskRunner; |
| 32 } | 33 } |
| 33 | 34 |
| 34 namespace blink { | 35 namespace blink { |
| 35 class WebAppBannerClient; | 36 class WebAppBannerClient; |
| 36 class WebAudioDevice; | 37 class WebAudioDevice; |
| 37 class WebClipboard; | 38 class WebClipboard; |
| 38 class WebFrame; | 39 class WebFrame; |
| 40 class WebFrameletClient; |
| 39 class WebLocalFrame; | 41 class WebLocalFrame; |
| 40 class WebMIDIAccessor; | 42 class WebMIDIAccessor; |
| 41 class WebMIDIAccessorClient; | 43 class WebMIDIAccessorClient; |
| 42 class WebMediaStreamCenter; | 44 class WebMediaStreamCenter; |
| 43 class WebMediaStreamCenterClient; | 45 class WebMediaStreamCenterClient; |
| 44 class WebPlugin; | 46 class WebPlugin; |
| 45 class WebPluginContainer; | 47 class WebPluginContainer; |
| 46 class WebPrescientNetworking; | 48 class WebPrescientNetworking; |
| 47 class WebRTCPeerConnectionHandler; | 49 class WebRTCPeerConnectionHandler; |
| 48 class WebRTCPeerConnectionHandlerClient; | 50 class WebRTCPeerConnectionHandlerClient; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 virtual blink::WebPlugin* CreatePluginReplacement( | 109 virtual blink::WebPlugin* CreatePluginReplacement( |
| 108 RenderFrame* render_frame, | 110 RenderFrame* render_frame, |
| 109 const base::FilePath& plugin_path); | 111 const base::FilePath& plugin_path); |
| 110 | 112 |
| 111 // Creates a delegate for browser plugin. | 113 // Creates a delegate for browser plugin. |
| 112 virtual BrowserPluginDelegate* CreateBrowserPluginDelegate( | 114 virtual BrowserPluginDelegate* CreateBrowserPluginDelegate( |
| 113 RenderFrame* render_frame, | 115 RenderFrame* render_frame, |
| 114 const std::string& mime_type, | 116 const std::string& mime_type, |
| 115 const GURL& original_url); | 117 const GURL& original_url); |
| 116 | 118 |
| 119 // Creates a framelet container. |
| 120 virtual blink::WebFrameletClient* CreateFramelet( |
| 121 RenderFrame* render_frame, |
| 122 const GURL& url, |
| 123 IPC::Sender* thread_safe_sender); |
| 124 |
| 117 // Returns true if the embedder has an error page to show for the given http | 125 // Returns true if the embedder has an error page to show for the given http |
| 118 // status code. If so |error_domain| should be set to according to WebURLError | 126 // status code. If so |error_domain| should be set to according to WebURLError |
| 119 // and the embedder's GetNavigationErrorHtml will be called afterwards to get | 127 // and the embedder's GetNavigationErrorHtml will be called afterwards to get |
| 120 // the error html. | 128 // the error html. |
| 121 virtual bool HasErrorPage(int http_status_code, | 129 virtual bool HasErrorPage(int http_status_code, |
| 122 std::string* error_domain); | 130 std::string* error_domain); |
| 123 | 131 |
| 124 // Returns true if the embedder prefers not to show an error page for a failed | 132 // Returns true if the embedder prefers not to show an error page for a failed |
| 125 // navigation to |url| in |render_frame|. | 133 // navigation to |url| in |render_frame|. |
| 126 virtual bool ShouldSuppressErrorPage(RenderFrame* render_frame, | 134 virtual bool ShouldSuppressErrorPage(RenderFrame* render_frame, |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 const GURL& url) {} | 330 const GURL& url) {} |
| 323 | 331 |
| 324 // Whether this renderer should enforce preferences related to the WebRTC | 332 // Whether this renderer should enforce preferences related to the WebRTC |
| 325 // routing logic, i.e. allowing multiple routes and non-proxied UDP. | 333 // routing logic, i.e. allowing multiple routes and non-proxied UDP. |
| 326 virtual bool ShouldEnforceWebRTCRoutingPreferences(); | 334 virtual bool ShouldEnforceWebRTCRoutingPreferences(); |
| 327 }; | 335 }; |
| 328 | 336 |
| 329 } // namespace content | 337 } // namespace content |
| 330 | 338 |
| 331 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 339 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |