| 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "content/public/browser/render_view_host.h" | 29 #include "content/public/browser/render_view_host.h" |
| 30 #include "content/public/common/window_container_type.h" | 30 #include "content/public/common/window_container_type.h" |
| 31 #include "net/base/load_states.h" | 31 #include "net/base/load_states.h" |
| 32 #include "third_party/WebKit/public/web/WebAXEnums.h" | 32 #include "third_party/WebKit/public/web/WebAXEnums.h" |
| 33 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 33 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
| 34 #include "third_party/WebKit/public/web/WebPopupType.h" | 34 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 35 #include "third_party/skia/include/core/SkColor.h" | 35 #include "third_party/skia/include/core/SkColor.h" |
| 36 #include "ui/base/window_open_disposition.h" | 36 #include "ui/base/window_open_disposition.h" |
| 37 | 37 |
| 38 class SkBitmap; | 38 class SkBitmap; |
| 39 struct ViewHostMsg_CreateWindow_Params; | |
| 40 | 39 |
| 41 namespace content { | 40 namespace content { |
| 42 | 41 |
| 43 class PageState; | 42 class PageState; |
| 44 class RenderWidgetHostDelegate; | 43 class RenderWidgetHostDelegate; |
| 45 class SessionStorageNamespace; | 44 class SessionStorageNamespace; |
| 46 struct FileChooserFileInfo; | 45 struct FileChooserFileInfo; |
| 47 struct FileChooserParams; | 46 struct FileChooserParams; |
| 48 struct FrameReplicationState; | 47 struct FrameReplicationState; |
| 49 | 48 |
| 49 namespace mojom { |
| 50 class CreateNewWindowParams; |
| 51 } |
| 52 |
| 50 // This implements the RenderViewHost interface that is exposed to | 53 // This implements the RenderViewHost interface that is exposed to |
| 51 // embedders of content, and adds things only visible to content. | 54 // embedders of content, and adds things only visible to content. |
| 52 // | 55 // |
| 53 // The exact API of this object needs to be more thoroughly designed. Right | 56 // The exact API of this object needs to be more thoroughly designed. Right |
| 54 // now it mimics what WebContentsImpl exposed, which is a fairly large API and | 57 // now it mimics what WebContentsImpl exposed, which is a fairly large API and |
| 55 // may contain things that are not relevant to a common subset of views. See | 58 // may contain things that are not relevant to a common subset of views. See |
| 56 // also the comment in render_view_host_delegate.h about the size and scope of | 59 // also the comment in render_view_host_delegate.h about the size and scope of |
| 57 // the delegate API. | 60 // the delegate API. |
| 58 // | 61 // |
| 59 // Right now, the concept of page navigation (both top level and frame) exists | 62 // Right now, the concept of page navigation (both top level and frame) exists |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 221 |
| 219 bool SuddenTerminationAllowed() const; | 222 bool SuddenTerminationAllowed() const; |
| 220 void set_sudden_termination_allowed(bool enabled) { | 223 void set_sudden_termination_allowed(bool enabled) { |
| 221 sudden_termination_allowed_ = enabled; | 224 sudden_termination_allowed_ = enabled; |
| 222 } | 225 } |
| 223 | 226 |
| 224 // Creates a new RenderView with the given route id. | 227 // Creates a new RenderView with the given route id. |
| 225 void CreateNewWindow(int32_t route_id, | 228 void CreateNewWindow(int32_t route_id, |
| 226 int32_t main_frame_route_id, | 229 int32_t main_frame_route_id, |
| 227 int32_t main_frame_widget_route_id, | 230 int32_t main_frame_widget_route_id, |
| 228 const ViewHostMsg_CreateWindow_Params& params, | 231 const mojom::CreateNewWindowParams& params, |
| 229 SessionStorageNamespace* session_storage_namespace); | 232 SessionStorageNamespace* session_storage_namespace); |
| 230 | 233 |
| 231 // Creates a new RenderWidget with the given route id. |popup_type| indicates | 234 // Creates a new RenderWidget with the given route id. |popup_type| indicates |
| 232 // if this widget is a popup and what kind of popup it is (select, autofill). | 235 // if this widget is a popup and what kind of popup it is (select, autofill). |
| 233 void CreateNewWidget(int32_t route_id, blink::WebPopupType popup_type); | 236 void CreateNewWidget(int32_t route_id, blink::WebPopupType popup_type); |
| 234 | 237 |
| 235 // Creates a full screen RenderWidget. | 238 // Creates a full screen RenderWidget. |
| 236 void CreateNewFullscreenWidget(int32_t route_id); | 239 void CreateNewFullscreenWidget(int32_t route_id); |
| 237 | 240 |
| 238 // Send RenderViewReady to observers once the process is launched, but not | 241 // Send RenderViewReady to observers once the process is launched, but not |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 bool render_view_ready_on_process_launch_; | 402 bool render_view_ready_on_process_launch_; |
| 400 | 403 |
| 401 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 404 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 402 | 405 |
| 403 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 406 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 404 }; | 407 }; |
| 405 | 408 |
| 406 } // namespace content | 409 } // namespace content |
| 407 | 410 |
| 408 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 411 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |