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 |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
| 12 #include "ipc/ipc_message.h" |
12 #include "content/common/content_client.h" | 13 #include "content/common/content_client.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
14 | 15 |
15 class FilePath; | 16 class FilePath; |
16 class GURL; | 17 class GURL; |
17 class RenderView; | 18 class RenderView; |
18 class SkBitmap; | 19 class SkBitmap; |
19 | 20 |
20 namespace WebKit { | 21 namespace WebKit { |
21 class WebFrame; | 22 class WebFrame; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 v8::Handle<v8::Context> context) = 0; | 103 v8::Handle<v8::Context> context) = 0; |
103 | 104 |
104 // See WebKit::WebKitClient. | 105 // See WebKit::WebKitClient. |
105 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 106 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
106 size_t length) = 0; | 107 size_t length) = 0; |
107 virtual bool IsLinkVisited(unsigned long long link_hash) = 0; | 108 virtual bool IsLinkVisited(unsigned long long link_hash) = 0; |
108 virtual void PrefetchHostName(const char* hostname, size_t length) = 0; | 109 virtual void PrefetchHostName(const char* hostname, size_t length) = 0; |
109 virtual bool ShouldOverridePageVisibilityState( | 110 virtual bool ShouldOverridePageVisibilityState( |
110 const RenderView* render_view, | 111 const RenderView* render_view, |
111 WebKit::WebPageVisibilityState* override_state) const = 0; | 112 WebKit::WebPageVisibilityState* override_state) const = 0; |
| 113 |
| 114 // Return true if the GetCookie request will be handled by the embedder. |
| 115 // Cookies are returned in the cookie parameter. |
| 116 virtual bool HandleGetCookieRequest(RenderView* sender, |
| 117 const GURL& url, |
| 118 const GURL& first_party_for_cookies, |
| 119 std::string* cookies) = 0; |
| 120 |
| 121 // Return true if the SetCookie request will be handled by the embedder. |
| 122 // Cookies to be set are passed in the value parameter. |
| 123 virtual bool HandleSetCookieRequest(RenderView* sender, |
| 124 const GURL& url, |
| 125 const GURL& first_party_for_cookies, |
| 126 const std::string& value) = 0; |
112 }; | 127 }; |
113 | 128 |
114 } // namespace content | 129 } // namespace content |
115 | 130 |
116 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 131 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |