| 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 371 |
| 372 // Notifies the RenderViewHost that a file has been chosen by the user from | 372 // Notifies the RenderViewHost that a file has been chosen by the user from |
| 373 // an Open File dialog for the form. | 373 // an Open File dialog for the form. |
| 374 void FileSelected(const FilePath& path); | 374 void FileSelected(const FilePath& path); |
| 375 | 375 |
| 376 // Notifies the Listener that many files have been chosen by the user from | 376 // Notifies the Listener that many files have been chosen by the user from |
| 377 // an Open File dialog for the form. | 377 // an Open File dialog for the form. |
| 378 void MultiFilesSelected(const std::vector<FilePath>& files); | 378 void MultiFilesSelected(const std::vector<FilePath>& files); |
| 379 | 379 |
| 380 // Notifies the RenderViewHost that its load state changed. | 380 // Notifies the RenderViewHost that its load state changed. |
| 381 void LoadStateChanged(const GURL& url, net::LoadState load_state); | 381 void LoadStateChanged(const GURL& url, net::LoadState load_state, |
| 382 uint64 upload_position, uint64 upload_size); |
| 382 | 383 |
| 383 bool SuddenTerminationAllowed() const; | 384 bool SuddenTerminationAllowed() const; |
| 384 void set_sudden_termination_allowed(bool enabled) { | 385 void set_sudden_termination_allowed(bool enabled) { |
| 385 sudden_termination_allowed_ = enabled; | 386 sudden_termination_allowed_ = enabled; |
| 386 } | 387 } |
| 387 | 388 |
| 388 // Forward a message from external host to chrome renderer. | 389 // Forward a message from external host to chrome renderer. |
| 389 void ForwardMessageFromExternalHost(const std::string& message, | 390 void ForwardMessageFromExternalHost(const std::string& message, |
| 390 const std::string& origin, | 391 const std::string& origin, |
| 391 const std::string& target); | 392 const std::string& target); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 // While in this mode, mouse click is converted into InspectElement | 668 // While in this mode, mouse click is converted into InspectElement |
| 668 // command. | 669 // command. |
| 669 bool in_inspect_element_mode_; | 670 bool in_inspect_element_mode_; |
| 670 | 671 |
| 671 NotificationRegistrar registrar_; | 672 NotificationRegistrar registrar_; |
| 672 | 673 |
| 673 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 674 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 674 }; | 675 }; |
| 675 | 676 |
| 676 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 677 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |