| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 const std::vector<GURL>& links, | 247 const std::vector<GURL>& links, |
| 248 const std::vector<base::FilePath>& local_paths, | 248 const std::vector<base::FilePath>& local_paths, |
| 249 const base::FilePath& local_directory_name); | 249 const base::FilePath& local_directory_name); |
| 250 | 250 |
| 251 // Notifies the RenderViewHost that its load state changed. | 251 // Notifies the RenderViewHost that its load state changed. |
| 252 void LoadStateChanged(const GURL& url, | 252 void LoadStateChanged(const GURL& url, |
| 253 const net::LoadStateWithParam& load_state, | 253 const net::LoadStateWithParam& load_state, |
| 254 uint64 upload_position, | 254 uint64 upload_position, |
| 255 uint64 upload_size); | 255 uint64 upload_size); |
| 256 | 256 |
| 257 bool SuddenTerminationAllowed() const; | |
| 258 void set_sudden_termination_allowed(bool enabled) { | |
| 259 sudden_termination_allowed_ = enabled; | |
| 260 } | |
| 261 | |
| 262 // RenderWidgetHost public overrides. | 257 // RenderWidgetHost public overrides. |
| 263 void Init() override; | 258 void Init() override; |
| 264 void Shutdown() override; | 259 void Shutdown() override; |
| 265 void WasHidden() override; | 260 void WasHidden() override; |
| 266 void WasShown(const ui::LatencyInfo& latency_info) override; | 261 void WasShown(const ui::LatencyInfo& latency_info) override; |
| 267 bool IsRenderView() const override; | 262 bool IsRenderView() const override; |
| 268 bool OnMessageReceived(const IPC::Message& msg) override; | 263 bool OnMessageReceived(const IPC::Message& msg) override; |
| 269 void GotFocus() override; | 264 void GotFocus() override; |
| 270 void LostCapture() override; | 265 void LostCapture() override; |
| 271 void LostMouseLock() override; | 266 void LostMouseLock() override; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 // must return to the renderer to unblock it. | 428 // must return to the renderer to unblock it. |
| 434 IPC::Message* run_modal_reply_msg_; | 429 IPC::Message* run_modal_reply_msg_; |
| 435 // This will hold the routing id of the RenderView that opened us. | 430 // This will hold the routing id of the RenderView that opened us. |
| 436 int run_modal_opener_id_; | 431 int run_modal_opener_id_; |
| 437 | 432 |
| 438 // Set to true when waiting for a ViewHostMsg_ClosePageACK. | 433 // Set to true when waiting for a ViewHostMsg_ClosePageACK. |
| 439 // TODO(creis): Move to RenderFrameHost and RenderWidgetHost. | 434 // TODO(creis): Move to RenderFrameHost and RenderWidgetHost. |
| 440 // See http://crbug.com/418265. | 435 // See http://crbug.com/418265. |
| 441 bool is_waiting_for_close_ack_; | 436 bool is_waiting_for_close_ack_; |
| 442 | 437 |
| 443 // True if the render view can be shut down suddenly. | |
| 444 bool sudden_termination_allowed_; | |
| 445 | |
| 446 // The termination status of the last render view that terminated. | 438 // The termination status of the last render view that terminated. |
| 447 base::TerminationStatus render_view_termination_status_; | 439 base::TerminationStatus render_view_termination_status_; |
| 448 | 440 |
| 449 // Set to true if we requested the on screen keyboard to be displayed. | 441 // Set to true if we requested the on screen keyboard to be displayed. |
| 450 bool virtual_keyboard_requested_; | 442 bool virtual_keyboard_requested_; |
| 451 | 443 |
| 452 // True if the current focused element is editable. | 444 // True if the current focused element is editable. |
| 453 bool is_focused_element_editable_; | 445 bool is_focused_element_editable_; |
| 454 | 446 |
| 455 // This is updated every time UpdateWebkitPreferences is called. That method | 447 // This is updated every time UpdateWebkitPreferences is called. That method |
| 456 // is in turn called when any of the settings change that the WebPreferences | 448 // is in turn called when any of the settings change that the WebPreferences |
| 457 // values depend on. | 449 // values depend on. |
| 458 scoped_ptr<WebPreferences> web_preferences_; | 450 scoped_ptr<WebPreferences> web_preferences_; |
| 459 | 451 |
| 460 bool updating_web_preferences_; | 452 bool updating_web_preferences_; |
| 461 | 453 |
| 462 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 454 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 463 | 455 |
| 464 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 456 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 465 }; | 457 }; |
| 466 | 458 |
| 467 #if defined(COMPILER_MSVC) | 459 #if defined(COMPILER_MSVC) |
| 468 #pragma warning(pop) | 460 #pragma warning(pop) |
| 469 #endif | 461 #endif |
| 470 | 462 |
| 471 } // namespace content | 463 } // namespace content |
| 472 | 464 |
| 473 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 465 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |