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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 class Point; | 64 class Point; |
65 class Rect; | 65 class Rect; |
66 class Size; | 66 class Size; |
67 } | 67 } |
68 | 68 |
69 namespace IPC { | 69 namespace IPC { |
70 class Message; | 70 class Message; |
71 } | 71 } |
72 | 72 |
73 namespace net { | 73 namespace net { |
74 class CookieMonster; | |
74 class CookieOptions; | 75 class CookieOptions; |
75 } | 76 } |
76 | 77 |
77 namespace webkit_glue { | 78 namespace webkit_glue { |
78 struct FormData; | 79 struct FormData; |
79 class FormField; | 80 class FormField; |
80 struct PasswordForm; | 81 struct PasswordForm; |
81 } | 82 } |
82 | 83 |
83 // | 84 // |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
383 // ContentSettings------------------------------------------------------------ | 384 // ContentSettings------------------------------------------------------------ |
384 // Interface for content settings related events. | 385 // Interface for content settings related events. |
385 | 386 |
386 class ContentSettings { | 387 class ContentSettings { |
387 public: | 388 public: |
388 // Called when content in the current page was blocked due to the user's | 389 // Called when content in the current page was blocked due to the user's |
389 // content settings. | 390 // content settings. |
390 virtual void OnContentBlocked(ContentSettingsType type, | 391 virtual void OnContentBlocked(ContentSettingsType type, |
391 const std::string& resource_identifier) = 0; | 392 const std::string& resource_identifier) = 0; |
392 | 393 |
394 // Called when cookies for given URL where read either from within the | |
darin (slow to review)
2010/11/30 18:24:11
nit: where -> were
jochen (gone - plz use gerrit)
2010/12/03 16:02:32
Done.
| |
395 // current page or while loading it. |blocked_by_policy| should be true, if | |
396 // reading cookies was blocked due to the user's content settings. In that | |
397 // case, this function should invoke OnContentBlocked. | |
398 virtual void OnCookiesRead( | |
399 const GURL& url, | |
400 net::CookieMonster* cookie_monster, | |
401 const net::CookieOptions& options, | |
402 bool blocked_by_policy) = 0; | |
403 | |
393 // Called when a specific cookie in the current page was accessed. | 404 // Called when a specific cookie in the current page was accessed. |
394 // |blocked_by_policy| should be true, if the cookie was blocked due to the | 405 // |blocked_by_policy| should be true, if the cookie was blocked due to the |
395 // user's content settings. In that case, this function should invoke | 406 // user's content settings. In that case, this function should invoke |
396 // OnContentBlocked. | 407 // OnContentBlocked. |
397 virtual void OnCookieAccessed(const GURL& url, | 408 virtual void OnCookieAccessed(const GURL& url, |
398 const std::string& cookie_line, | 409 const std::string& cookie_line, |
399 const net::CookieOptions& options, | 410 const net::CookieOptions& options, |
400 bool blocked_by_policy) = 0; | 411 bool blocked_by_policy) = 0; |
401 | 412 |
402 // Called when a specific indexed db factory in the current page was | 413 // Called when a specific indexed db factory in the current page was |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
857 bool remember) {} | 868 bool remember) {} |
858 | 869 |
859 // Update the content restrictions, i.e. disable print/copy. | 870 // Update the content restrictions, i.e. disable print/copy. |
860 virtual void UpdateContentRestrictions(int restrictions) {} | 871 virtual void UpdateContentRestrictions(int restrictions) {} |
861 | 872 |
862 protected: | 873 protected: |
863 virtual ~RenderViewHostDelegate() {} | 874 virtual ~RenderViewHostDelegate() {} |
864 }; | 875 }; |
865 | 876 |
866 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 877 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |