| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 int GetPendingRequestId(); | 174 int GetPendingRequestId(); |
| 175 | 175 |
| 176 // Called by ResourceDispatcherHost when a response for a pending cross-site | 176 // Called by ResourceDispatcherHost when a response for a pending cross-site |
| 177 // request is received. The ResourceDispatcherHost will pause the response | 177 // request is received. The ResourceDispatcherHost will pause the response |
| 178 // until the onunload handler of the previous renderer is run. | 178 // until the onunload handler of the previous renderer is run. |
| 179 void OnCrossSiteResponse(int new_render_process_host_id, int new_request_id); | 179 void OnCrossSiteResponse(int new_render_process_host_id, int new_request_id); |
| 180 | 180 |
| 181 // Stops the current load. | 181 // Stops the current load. |
| 182 void Stop(); | 182 void Stop(); |
| 183 | 183 |
| 184 | |
| 185 // Asks the renderer to "render" printed pages and initiate printing on our | 184 // Asks the renderer to "render" printed pages and initiate printing on our |
| 186 // behalf. | 185 // behalf. |
| 187 bool PrintPages(); | 186 bool PrintPages(); |
| 188 | 187 |
| 188 // Notify renderer of success/failure of print job. |
| 189 void PrintingDone(int document_cookie, bool success); |
| 190 |
| 189 // Start looking for a string within the content of the page, with the | 191 // Start looking for a string within the content of the page, with the |
| 190 // specified options. | 192 // specified options. |
| 191 void StartFinding(int request_id, | 193 void StartFinding(int request_id, |
| 192 const string16& search_string, | 194 const string16& search_string, |
| 193 bool forward, | 195 bool forward, |
| 194 bool match_case, | 196 bool match_case, |
| 195 bool find_next); | 197 bool find_next); |
| 196 | 198 |
| 197 // Cancel a pending find operation. If |clear_selection| is true, it will also | 199 // Cancel a pending find operation. If |clear_selection| is true, it will also |
| 198 // clear the selection on the focused frame. | 200 // clear the selection on the focused frame. |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 // not an extension. | 641 // not an extension. |
| 640 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 642 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
| 641 | 643 |
| 642 // True if the render view can be shut down suddenly. | 644 // True if the render view can be shut down suddenly. |
| 643 bool sudden_termination_allowed_; | 645 bool sudden_termination_allowed_; |
| 644 | 646 |
| 645 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 647 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 646 }; | 648 }; |
| 647 | 649 |
| 648 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 650 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |