| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
| 6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 void InsertCSS(const std::wstring& frame_xpath, | 353 void InsertCSS(const std::wstring& frame_xpath, |
| 354 const std::string& css); | 354 const std::string& css); |
| 355 | 355 |
| 356 int delay_seconds_for_form_state_sync() const { | 356 int delay_seconds_for_form_state_sync() const { |
| 357 return delay_seconds_for_form_state_sync_; | 357 return delay_seconds_for_form_state_sync_; |
| 358 } | 358 } |
| 359 void set_delay_seconds_for_form_state_sync(int delay_in_seconds) { | 359 void set_delay_seconds_for_form_state_sync(int delay_in_seconds) { |
| 360 delay_seconds_for_form_state_sync_ = delay_in_seconds; | 360 delay_seconds_for_form_state_sync_ = delay_in_seconds; |
| 361 } | 361 } |
| 362 | 362 |
| 363 // Returns a message loop of type IO that can be used to run I/O jobs. The |
| 364 // renderer thread is of type TYPE_DEFAULT, so doesn't support everything |
| 365 // needed by some consumers. The returned thread will be the main thread of |
| 366 // the renderer, which processes all IPC, to any I/O should be non-blocking. |
| 367 MessageLoop* GetMessageLoopForIO(); |
| 368 |
| 363 AudioMessageFilter* audio_message_filter() { return audio_message_filter_; } | 369 AudioMessageFilter* audio_message_filter() { return audio_message_filter_; } |
| 364 | 370 |
| 365 void OnClearFocusedNode(); | 371 void OnClearFocusedNode(); |
| 366 | 372 |
| 367 void SendExtensionRequest(const std::string& name, const std::string& args, | 373 void SendExtensionRequest(const std::string& name, const std::string& args, |
| 368 int request_id, bool has_callback); | 374 int request_id, bool has_callback); |
| 369 void OnExtensionResponse(int request_id, bool success, | 375 void OnExtensionResponse(int request_id, bool success, |
| 370 const std::string& response, | 376 const std::string& response, |
| 371 const std::string& error); | 377 const std::string& error); |
| 372 | 378 |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 // PrintWebViewHelper handles printing. Note that this object is constructed | 805 // PrintWebViewHelper handles printing. Note that this object is constructed |
| 800 // when printing for the first time but only destroyed with the RenderView. | 806 // when printing for the first time but only destroyed with the RenderView. |
| 801 scoped_ptr<PrintWebViewHelper> print_helper_; | 807 scoped_ptr<PrintWebViewHelper> print_helper_; |
| 802 | 808 |
| 803 RendererPreferences renderer_preferences_; | 809 RendererPreferences renderer_preferences_; |
| 804 | 810 |
| 805 DISALLOW_COPY_AND_ASSIGN(RenderView); | 811 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 806 }; | 812 }; |
| 807 | 813 |
| 808 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 814 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |