| 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 // OnContentBlocked. | 390 // OnContentBlocked. |
| 391 virtual void OnCookieAccessed(const GURL& url, | 391 virtual void OnCookieAccessed(const GURL& url, |
| 392 const std::string& cookie_line, | 392 const std::string& cookie_line, |
| 393 bool blocked_by_policy) = 0; | 393 bool blocked_by_policy) = 0; |
| 394 | 394 |
| 395 // Called when a specific indexed db factory in the current page was | 395 // Called when a specific indexed db factory in the current page was |
| 396 // accessed. If access was blocked due to the user's content settings, | 396 // accessed. If access was blocked due to the user's content settings, |
| 397 // |blocked_by_policy| should be true, and this function should invoke | 397 // |blocked_by_policy| should be true, and this function should invoke |
| 398 // OnContentBlocked. | 398 // OnContentBlocked. |
| 399 virtual void OnIndexedDBAccessed(const GURL& url, | 399 virtual void OnIndexedDBAccessed(const GURL& url, |
| 400 const string16& name, | |
| 401 const string16& description, | 400 const string16& description, |
| 402 bool blocked_by_policy) = 0; | 401 bool blocked_by_policy) = 0; |
| 403 | 402 |
| 404 // Called when a specific local storage area in the current page was | 403 // Called when a specific local storage area in the current page was |
| 405 // accessed. If access was blocked due to the user's content settings, | 404 // accessed. If access was blocked due to the user's content settings, |
| 406 // |blocked_by_policy| should be true, and this function should invoke | 405 // |blocked_by_policy| should be true, and this function should invoke |
| 407 // OnContentBlocked. | 406 // OnContentBlocked. |
| 408 virtual void OnLocalStorageAccessed(const GURL& url, | 407 virtual void OnLocalStorageAccessed(const GURL& url, |
| 409 DOMStorageType storage_type, | 408 DOMStorageType storage_type, |
| 410 bool blocked_by_policy) = 0; | 409 bool blocked_by_policy) = 0; |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 bool remember) {} | 861 bool remember) {} |
| 863 | 862 |
| 864 // Update the content restrictions, i.e. disable print/copy. | 863 // Update the content restrictions, i.e. disable print/copy. |
| 865 virtual void UpdateContentRestrictions(int restrictions) {} | 864 virtual void UpdateContentRestrictions(int restrictions) {} |
| 866 | 865 |
| 867 protected: | 866 protected: |
| 868 virtual ~RenderViewHostDelegate() {} | 867 virtual ~RenderViewHostDelegate() {} |
| 869 }; | 868 }; |
| 870 | 869 |
| 871 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 870 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |