OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
102 v8::Handle<v8::Context> context) = 0; | 102 v8::Handle<v8::Context> context) = 0; |
103 | 103 |
104 // See WebKit::WebKitClient. | 104 // See WebKit::WebKitClient. |
105 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 105 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
106 size_t length) = 0; | 106 size_t length) = 0; |
107 virtual bool IsLinkVisited(unsigned long long link_hash) = 0; | 107 virtual bool IsLinkVisited(unsigned long long link_hash) = 0; |
108 virtual void PrefetchHostName(const char* hostname, size_t length) = 0; | 108 virtual void PrefetchHostName(const char* hostname, size_t length) = 0; |
109 virtual bool ShouldOverridePageVisibilityState( | 109 virtual bool ShouldOverridePageVisibilityState( |
110 const RenderView* render_view, | 110 const RenderView* render_view, |
111 WebKit::WebPageVisibilityState* override_state) const = 0; | 111 WebKit::WebPageVisibilityState* override_state) const = 0; |
112 | |
113 // Return true if the GetCookie request can be handled by the embedder. | |
jam
2011/08/28 21:44:42
nit: just to make it clear, "can be" should be "wi
ananta
2011/08/29 19:12:25
Done.
| |
114 // Cookies are returned in the cookie parameter. | |
115 virtual bool HandleGetCookieRequest(RenderView* render_view, | |
116 const GURL& url, | |
117 const GURL& first_party_for_cookies, | |
118 std::string* cookies) = 0; | |
119 | |
120 // Return true if the SetCookie request can be handled by the embedder. | |
121 // Cookies to be set are passed in the value parameter. | |
122 virtual bool HandleSetCookieRequest(RenderView* render_view, | |
123 const GURL& url, | |
124 const GURL& first_party_for_cookies, | |
125 const std::string& value) = 0; | |
112 }; | 126 }; |
113 | 127 |
114 } // namespace content | 128 } // namespace content |
115 | 129 |
116 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 130 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |