| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 312 |
| 313 // Notifies the Listener that one or more files have been chosen by the user | 313 // Notifies the Listener that one or more files have been chosen by the user |
| 314 // from an Open File dialog for the form. | 314 // from an Open File dialog for the form. |
| 315 void FilesSelectedInChooser(const std::vector<FilePath>& files); | 315 void FilesSelectedInChooser(const std::vector<FilePath>& files); |
| 316 | 316 |
| 317 // Notifies the listener that a directory enumeration is complete. | 317 // Notifies the listener that a directory enumeration is complete. |
| 318 void DirectoryEnumerationFinished(int request_id, | 318 void DirectoryEnumerationFinished(int request_id, |
| 319 const std::vector<FilePath>& files); | 319 const std::vector<FilePath>& files); |
| 320 | 320 |
| 321 // Notifies the RenderViewHost that its load state changed. | 321 // Notifies the RenderViewHost that its load state changed. |
| 322 void LoadStateChanged(const GURL& url, net::LoadState load_state, | 322 void LoadStateChanged(const GURL& url, |
| 323 uint64 upload_position, uint64 upload_size); | 323 const net::LoadStateWithParam& load_state, |
| 324 uint64 upload_position, |
| 325 uint64 upload_size); |
| 324 | 326 |
| 325 bool SuddenTerminationAllowed() const; | 327 bool SuddenTerminationAllowed() const; |
| 326 void set_sudden_termination_allowed(bool enabled) { | 328 void set_sudden_termination_allowed(bool enabled) { |
| 327 sudden_termination_allowed_ = enabled; | 329 sudden_termination_allowed_ = enabled; |
| 328 } | 330 } |
| 329 | 331 |
| 330 // Message the renderer that we should be counted as a new document and not | 332 // Message the renderer that we should be counted as a new document and not |
| 331 // as a popup. | 333 // as a popup. |
| 332 void DisassociateFromPopupCount(); | 334 void DisassociateFromPopupCount(); |
| 333 | 335 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 // The termination status of the last render view that terminated. | 547 // The termination status of the last render view that terminated. |
| 546 base::TerminationStatus render_view_termination_status_; | 548 base::TerminationStatus render_view_termination_status_; |
| 547 | 549 |
| 548 // A list of observers that filter messages. Weak references. | 550 // A list of observers that filter messages. Weak references. |
| 549 ObserverList<RenderViewHostObserver> observers_; | 551 ObserverList<RenderViewHostObserver> observers_; |
| 550 | 552 |
| 551 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 553 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 552 }; | 554 }; |
| 553 | 555 |
| 554 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 556 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |