| 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 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
| 13 #include "content/public/common/content_client.h" | 13 #include "content/public/common/content_client.h" |
| 14 #include "content/public/common/page_transition_types.h" | 14 #include "content/public/common/page_transition_types.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
| 18 #include "v8/include/v8.h" | 18 #include "v8/include/v8.h" |
| 19 | 19 |
| 20 class FilePath; | |
| 21 class GURL; | 20 class GURL; |
| 22 class SkBitmap; | 21 class SkBitmap; |
| 23 | 22 |
| 23 namespace base { |
| 24 class FilePath; |
| 25 } |
| 26 |
| 24 namespace WebKit { | 27 namespace WebKit { |
| 25 class WebFrame; | 28 class WebFrame; |
| 26 class WebMediaPlayerClient; | 29 class WebMediaPlayerClient; |
| 27 class WebPlugin; | 30 class WebPlugin; |
| 28 class WebURLRequest; | 31 class WebURLRequest; |
| 29 struct WebPluginParams; | 32 struct WebPluginParams; |
| 30 struct WebURLError; | 33 struct WebURLError; |
| 31 } | 34 } |
| 32 | 35 |
| 33 namespace webkit { | 36 namespace webkit { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 virtual bool OverrideCreatePlugin( | 80 virtual bool OverrideCreatePlugin( |
| 78 RenderView* render_view, | 81 RenderView* render_view, |
| 79 WebKit::WebFrame* frame, | 82 WebKit::WebFrame* frame, |
| 80 const WebKit::WebPluginParams& params, | 83 const WebKit::WebPluginParams& params, |
| 81 WebKit::WebPlugin** plugin); | 84 WebKit::WebPlugin** plugin); |
| 82 | 85 |
| 83 // Creates a replacement plug-in that is shown when the plug-in at |file_path| | 86 // Creates a replacement plug-in that is shown when the plug-in at |file_path| |
| 84 // couldn't be loaded. This allows the embedder to show a custom placeholder. | 87 // couldn't be loaded. This allows the embedder to show a custom placeholder. |
| 85 virtual WebKit::WebPlugin* CreatePluginReplacement( | 88 virtual WebKit::WebPlugin* CreatePluginReplacement( |
| 86 RenderView* render_view, | 89 RenderView* render_view, |
| 87 const FilePath& plugin_path); | 90 const base::FilePath& plugin_path); |
| 88 | 91 |
| 89 // Returns true if the embedder has an error page to show for the given http | 92 // Returns true if the embedder has an error page to show for the given http |
| 90 // status code. If so |error_domain| should be set to according to WebURLError | 93 // status code. If so |error_domain| should be set to according to WebURLError |
| 91 // and the embedder's GetNavigationErrorHtml will be called afterwards to get | 94 // and the embedder's GetNavigationErrorHtml will be called afterwards to get |
| 92 // the error html. | 95 // the error html. |
| 93 virtual bool HasErrorPage(int http_status_code, | 96 virtual bool HasErrorPage(int http_status_code, |
| 94 std::string* error_domain); | 97 std::string* error_domain); |
| 95 | 98 |
| 96 // Returns the information to display when a navigation error occurs. | 99 // Returns the information to display when a navigation error occurs. |
| 97 // If |error_html| is not null then it may be set to a HTML page containing | 100 // If |error_html| is not null then it may be set to a HTML page containing |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 const GURL& first_party_for_cookies, | 185 const GURL& first_party_for_cookies, |
| 183 const std::string& value); | 186 const std::string& value); |
| 184 | 187 |
| 185 virtual void RegisterPPAPIInterfaceFactories( | 188 virtual void RegisterPPAPIInterfaceFactories( |
| 186 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} | 189 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} |
| 187 }; | 190 }; |
| 188 | 191 |
| 189 } // namespace content | 192 } // namespace content |
| 190 | 193 |
| 191 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 194 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |