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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 // Resource ------------------------------------------------------------------ | 323 // Resource ------------------------------------------------------------------ |
324 // Notifications of resource loading events. | 324 // Notifications of resource loading events. |
325 | 325 |
326 class Resource { | 326 class Resource { |
327 public: | 327 public: |
328 // The RenderView is starting a provisional load. | 328 // The RenderView is starting a provisional load. |
329 virtual void DidStartProvisionalLoadForFrame( | 329 virtual void DidStartProvisionalLoadForFrame( |
330 RenderViewHost* render_view_host, | 330 RenderViewHost* render_view_host, |
331 int64 frame_id, | 331 int64 frame_id, |
332 bool is_main_frame, | 332 bool is_main_frame, |
| 333 bool is_error_page, |
333 const GURL& url) = 0; | 334 const GURL& url) = 0; |
334 | 335 |
335 // Notification by the resource loading system (not the renderer) that it | 336 // Notification by the resource loading system (not the renderer) that it |
336 // has started receiving a resource response. This is different than | 337 // has started receiving a resource response. This is different than |
337 // DidStartProvisionalLoadForFrame above because this is called for every | 338 // DidStartProvisionalLoadForFrame above because this is called for every |
338 // resource (images, automatically loaded subframes, etc.) and provisional | 339 // resource (images, automatically loaded subframes, etc.) and provisional |
339 // loads are only for user-initiated navigations. | 340 // loads are only for user-initiated navigations. |
340 virtual void DidStartReceivingResourceResponse( | 341 virtual void DidStartReceivingResourceResponse( |
341 const ResourceRequestDetails& details) = 0; | 342 const ResourceRequestDetails& details) = 0; |
342 | 343 |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 bool remember) {} | 863 bool remember) {} |
863 | 864 |
864 // Update the content restrictions, i.e. disable print/copy. | 865 // Update the content restrictions, i.e. disable print/copy. |
865 virtual void UpdateContentRestrictions(int restrictions) {} | 866 virtual void UpdateContentRestrictions(int restrictions) {} |
866 | 867 |
867 protected: | 868 protected: |
868 virtual ~RenderViewHostDelegate() {} | 869 virtual ~RenderViewHostDelegate() {} |
869 }; | 870 }; |
870 | 871 |
871 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 872 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |