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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 }; | 313 }; |
314 | 314 |
315 // Resource ------------------------------------------------------------------ | 315 // Resource ------------------------------------------------------------------ |
316 // Notifications of resource loading events. | 316 // Notifications of resource loading events. |
317 | 317 |
318 class Resource { | 318 class Resource { |
319 public: | 319 public: |
320 // The RenderView is starting a provisional load. | 320 // The RenderView is starting a provisional load. |
321 virtual void DidStartProvisionalLoadForFrame( | 321 virtual void DidStartProvisionalLoadForFrame( |
322 RenderViewHost* render_view_host, | 322 RenderViewHost* render_view_host, |
323 long long frame_id, | 323 int64 frame_id, |
324 bool is_main_frame, | 324 bool is_main_frame, |
325 const GURL& url) = 0; | 325 const GURL& url) = 0; |
326 | 326 |
327 // Notification by the resource loading system (not the renderer) that it | 327 // Notification by the resource loading system (not the renderer) that it |
328 // has started receiving a resource response. This is different than | 328 // has started receiving a resource response. This is different than |
329 // DidStartProvisionalLoadForFrame above because this is called for every | 329 // DidStartProvisionalLoadForFrame above because this is called for every |
330 // resource (images, automatically loaded subframes, etc.) and provisional | 330 // resource (images, automatically loaded subframes, etc.) and provisional |
331 // loads are only for user-initiated navigations. | 331 // loads are only for user-initiated navigations. |
332 virtual void DidStartReceivingResourceResponse( | 332 virtual void DidStartReceivingResourceResponse( |
333 const ResourceRequestDetails& details) = 0; | 333 const ResourceRequestDetails& details) = 0; |
(...skipping 19 matching lines...) Expand all Loading... |
353 const std::string& frame_origin, | 353 const std::string& frame_origin, |
354 const std::string& main_frame_origin, | 354 const std::string& main_frame_origin, |
355 const std::string& security_info) = 0; | 355 const std::string& security_info) = 0; |
356 | 356 |
357 virtual void DidDisplayInsecureContent() = 0; | 357 virtual void DidDisplayInsecureContent() = 0; |
358 virtual void DidRunInsecureContent(const std::string& security_origin) = 0; | 358 virtual void DidRunInsecureContent(const std::string& security_origin) = 0; |
359 | 359 |
360 // The RenderView failed a provisional load with an error. | 360 // The RenderView failed a provisional load with an error. |
361 virtual void DidFailProvisionalLoadWithError( | 361 virtual void DidFailProvisionalLoadWithError( |
362 RenderViewHost* render_view_host, | 362 RenderViewHost* render_view_host, |
363 long long frame_id, | 363 int64 frame_id, |
364 bool is_main_frame, | 364 bool is_main_frame, |
365 int error_code, | 365 int error_code, |
366 const GURL& url, | 366 const GURL& url, |
367 bool showing_repost_interstitial) = 0; | 367 bool showing_repost_interstitial) = 0; |
368 | 368 |
369 // Notification that a document has been loaded in a frame. | 369 // Notification that a document has been loaded in a frame. |
370 virtual void DocumentLoadedInFrame(long long frame_id) = 0; | 370 virtual void DocumentLoadedInFrame(int64 frame_id) = 0; |
371 | 371 |
372 // Notification that a frame finished loading. | 372 // Notification that a frame finished loading. |
373 virtual void DidFinishLoad(long long frame_id) = 0; | 373 virtual void DidFinishLoad(int64 frame_id) = 0; |
374 | 374 |
375 protected: | 375 protected: |
376 virtual ~Resource() {} | 376 virtual ~Resource() {} |
377 }; | 377 }; |
378 | 378 |
379 // ContentSettings------------------------------------------------------------ | 379 // ContentSettings------------------------------------------------------------ |
380 // Interface for content settings related events. | 380 // Interface for content settings related events. |
381 | 381 |
382 class ContentSettings { | 382 class ContentSettings { |
383 public: | 383 public: |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 bool remember) {} | 852 bool remember) {} |
853 | 853 |
854 // Update the content restrictions, i.e. disable print/copy. | 854 // Update the content restrictions, i.e. disable print/copy. |
855 virtual void UpdateContentRestrictions(int restrictions) {} | 855 virtual void UpdateContentRestrictions(int restrictions) {} |
856 | 856 |
857 protected: | 857 protected: |
858 virtual ~RenderViewHostDelegate() {} | 858 virtual ~RenderViewHostDelegate() {} |
859 }; | 859 }; |
860 | 860 |
861 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 861 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |