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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // contain all saved auxiliary files included all sub frames and resouces. | 403 // contain all saved auxiliary files included all sub frames and resouces. |
404 void GetSerializedHtmlDataForCurrentPageWithLocalLinks( | 404 void GetSerializedHtmlDataForCurrentPageWithLocalLinks( |
405 const std::vector<GURL>& links, | 405 const std::vector<GURL>& links, |
406 const std::vector<FilePath>& local_paths, | 406 const std::vector<FilePath>& local_paths, |
407 const FilePath& local_directory_name); | 407 const FilePath& local_directory_name); |
408 | 408 |
409 // Notifies the Listener that one or more files have been chosen by the user | 409 // Notifies the Listener that one or more files have been chosen by the user |
410 // from an Open File dialog for the form. | 410 // from an Open File dialog for the form. |
411 void FilesSelectedInChooser(const std::vector<FilePath>& files); | 411 void FilesSelectedInChooser(const std::vector<FilePath>& files); |
412 | 412 |
| 413 // Notifies the listener that a directory enumeration is complete. |
| 414 void DirectoryEnumerationFinished(int request_id, |
| 415 const std::vector<FilePath>& files); |
| 416 |
413 // Notifies the RenderViewHost that its load state changed. | 417 // Notifies the RenderViewHost that its load state changed. |
414 void LoadStateChanged(const GURL& url, net::LoadState load_state, | 418 void LoadStateChanged(const GURL& url, net::LoadState load_state, |
415 uint64 upload_position, uint64 upload_size); | 419 uint64 upload_position, uint64 upload_size); |
416 | 420 |
417 bool SuddenTerminationAllowed() const; | 421 bool SuddenTerminationAllowed() const; |
418 void set_sudden_termination_allowed(bool enabled) { | 422 void set_sudden_termination_allowed(bool enabled) { |
419 sudden_termination_allowed_ = enabled; | 423 sudden_termination_allowed_ = enabled; |
420 } | 424 } |
421 | 425 |
422 // Forward a message from external host to chrome renderer. | 426 // Forward a message from external host to chrome renderer. |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 // The termination status of the last render view that terminated. | 736 // The termination status of the last render view that terminated. |
733 base::TerminationStatus render_view_termination_status_; | 737 base::TerminationStatus render_view_termination_status_; |
734 | 738 |
735 // The enabled/disabled states of various commands. | 739 // The enabled/disabled states of various commands. |
736 std::map<RenderViewCommand, CommandState> command_states_; | 740 std::map<RenderViewCommand, CommandState> command_states_; |
737 | 741 |
738 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 742 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
739 }; | 743 }; |
740 | 744 |
741 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 745 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |