| 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 | |
| 369 AudioMessageFilter* audio_message_filter() { return audio_message_filter_; } | 363 AudioMessageFilter* audio_message_filter() { return audio_message_filter_; } |
| 370 | 364 |
| 371 void OnClearFocusedNode(); | 365 void OnClearFocusedNode(); |
| 372 | 366 |
| 373 void SendExtensionRequest(const std::string& name, const std::string& args, | 367 void SendExtensionRequest(const std::string& name, const std::string& args, |
| 374 int request_id, bool has_callback); | 368 int request_id, bool has_callback); |
| 375 void OnExtensionResponse(int request_id, bool success, | 369 void OnExtensionResponse(int request_id, bool success, |
| 376 const std::string& response, | 370 const std::string& response, |
| 377 const std::string& error); | 371 const std::string& error); |
| 378 | 372 |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 // PrintWebViewHelper handles printing. Note that this object is constructed | 802 // PrintWebViewHelper handles printing. Note that this object is constructed |
| 809 // when printing for the first time but only destroyed with the RenderView. | 803 // when printing for the first time but only destroyed with the RenderView. |
| 810 scoped_ptr<PrintWebViewHelper> print_helper_; | 804 scoped_ptr<PrintWebViewHelper> print_helper_; |
| 811 | 805 |
| 812 RendererPreferences renderer_preferences_; | 806 RendererPreferences renderer_preferences_; |
| 813 | 807 |
| 814 DISALLOW_COPY_AND_ASSIGN(RenderView); | 808 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 815 }; | 809 }; |
| 816 | 810 |
| 817 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 811 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |