OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 }; | 295 }; |
296 | 296 |
297 // Resource ------------------------------------------------------------------ | 297 // Resource ------------------------------------------------------------------ |
298 // Notifications of resource loading events. | 298 // Notifications of resource loading events. |
299 | 299 |
300 class Resource { | 300 class Resource { |
301 public: | 301 public: |
302 // The RenderView is starting a provisional load. | 302 // The RenderView is starting a provisional load. |
303 virtual void DidStartProvisionalLoadForFrame( | 303 virtual void DidStartProvisionalLoadForFrame( |
304 RenderViewHost* render_view_host, | 304 RenderViewHost* render_view_host, |
| 305 long long frame_id, |
305 bool is_main_frame, | 306 bool is_main_frame, |
306 const GURL& url) = 0; | 307 const GURL& url) = 0; |
307 | 308 |
308 // Notification by the resource loading system (not the renderer) that it | 309 // Notification by the resource loading system (not the renderer) that it |
309 // has started receiving a resource response. This is different than | 310 // has started receiving a resource response. This is different than |
310 // DidStartProvisionalLoadForFrame above because this is called for every | 311 // DidStartProvisionalLoadForFrame above because this is called for every |
311 // resource (images, automatically loaded subframes, etc.) and provisional | 312 // resource (images, automatically loaded subframes, etc.) and provisional |
312 // loads are only for user-initiated navigations. | 313 // loads are only for user-initiated navigations. |
313 virtual void DidStartReceivingResourceResponse( | 314 virtual void DidStartReceivingResourceResponse( |
314 const ResourceRequestDetails& details) = 0; | 315 const ResourceRequestDetails& details) = 0; |
(...skipping 19 matching lines...) Expand all Loading... |
334 const std::string& frame_origin, | 335 const std::string& frame_origin, |
335 const std::string& main_frame_origin, | 336 const std::string& main_frame_origin, |
336 const std::string& security_info) = 0; | 337 const std::string& security_info) = 0; |
337 | 338 |
338 virtual void DidDisplayInsecureContent() = 0; | 339 virtual void DidDisplayInsecureContent() = 0; |
339 virtual void DidRunInsecureContent(const std::string& security_origin) = 0; | 340 virtual void DidRunInsecureContent(const std::string& security_origin) = 0; |
340 | 341 |
341 // The RenderView failed a provisional load with an error. | 342 // The RenderView failed a provisional load with an error. |
342 virtual void DidFailProvisionalLoadWithError( | 343 virtual void DidFailProvisionalLoadWithError( |
343 RenderViewHost* render_view_host, | 344 RenderViewHost* render_view_host, |
| 345 long long frame_id, |
344 bool is_main_frame, | 346 bool is_main_frame, |
345 int error_code, | 347 int error_code, |
346 const GURL& url, | 348 const GURL& url, |
347 bool showing_repost_interstitial) = 0; | 349 bool showing_repost_interstitial) = 0; |
348 | 350 |
349 // Notification that a document has been loaded in a frame. | 351 // Notification that a document has been loaded in a frame. |
350 virtual void DocumentLoadedInFrame() = 0; | 352 virtual void DocumentLoadedInFrame() = 0; |
351 | 353 |
352 protected: | 354 protected: |
353 virtual ~Resource() {} | 355 virtual ~Resource() {} |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 // Updates the minimum and maximum zoom percentages. | 840 // Updates the minimum and maximum zoom percentages. |
839 virtual void UpdateZoomLimits(int minimum_percent, | 841 virtual void UpdateZoomLimits(int minimum_percent, |
840 int maximum_percent, | 842 int maximum_percent, |
841 bool remember) {} | 843 bool remember) {} |
842 | 844 |
843 protected: | 845 protected: |
844 virtual ~RenderViewHostDelegate() {} | 846 virtual ~RenderViewHostDelegate() {} |
845 }; | 847 }; |
846 | 848 |
847 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 849 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |