| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 // contain all saved auxiliary files included all sub frames and resouces. | 392 // contain all saved auxiliary files included all sub frames and resouces. |
| 393 void GetSerializedHtmlDataForCurrentPageWithLocalLinks( | 393 void GetSerializedHtmlDataForCurrentPageWithLocalLinks( |
| 394 const std::vector<GURL>& links, | 394 const std::vector<GURL>& links, |
| 395 const std::vector<FilePath>& local_paths, | 395 const std::vector<FilePath>& local_paths, |
| 396 const FilePath& local_directory_name); | 396 const FilePath& local_directory_name); |
| 397 | 397 |
| 398 // Notifies the Listener that one or more files have been chosen by the user | 398 // Notifies the Listener that one or more files have been chosen by the user |
| 399 // from an Open File dialog for the form. | 399 // from an Open File dialog for the form. |
| 400 void FilesSelectedInChooser(const std::vector<FilePath>& files); | 400 void FilesSelectedInChooser(const std::vector<FilePath>& files); |
| 401 | 401 |
| 402 // Notifies the listener that a directory enumeration is complete. |
| 403 void DirectoryEnumerationFinished(int request_id, |
| 404 const std::vector<FilePath>& files); |
| 405 |
| 402 // Notifies the RenderViewHost that its load state changed. | 406 // Notifies the RenderViewHost that its load state changed. |
| 403 void LoadStateChanged(const GURL& url, net::LoadState load_state, | 407 void LoadStateChanged(const GURL& url, net::LoadState load_state, |
| 404 uint64 upload_position, uint64 upload_size); | 408 uint64 upload_position, uint64 upload_size); |
| 405 | 409 |
| 406 bool SuddenTerminationAllowed() const; | 410 bool SuddenTerminationAllowed() const; |
| 407 void set_sudden_termination_allowed(bool enabled) { | 411 void set_sudden_termination_allowed(bool enabled) { |
| 408 sudden_termination_allowed_ = enabled; | 412 sudden_termination_allowed_ = enabled; |
| 409 } | 413 } |
| 410 | 414 |
| 411 // Forward a message from external host to chrome renderer. | 415 // Forward a message from external host to chrome renderer. |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 // The termination status of the last render view that terminated. | 711 // The termination status of the last render view that terminated. |
| 708 base::TerminationStatus render_view_termination_status_; | 712 base::TerminationStatus render_view_termination_status_; |
| 709 | 713 |
| 710 // The enabled/disabled states of various commands. | 714 // The enabled/disabled states of various commands. |
| 711 std::map<RenderViewCommand, CommandState> command_states_; | 715 std::map<RenderViewCommand, CommandState> command_states_; |
| 712 | 716 |
| 713 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 717 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 714 }; | 718 }; |
| 715 | 719 |
| 716 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 720 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |