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_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 // Return true if the SetCookie request will be handled by the embedder. | 140 // Return true if the SetCookie request will be handled by the embedder. |
141 // Cookies to be set are passed in the value parameter. | 141 // Cookies to be set are passed in the value parameter. |
142 virtual bool HandleSetCookieRequest(RenderView* sender, | 142 virtual bool HandleSetCookieRequest(RenderView* sender, |
143 const GURL& url, | 143 const GURL& url, |
144 const GURL& first_party_for_cookies, | 144 const GURL& first_party_for_cookies, |
145 const std::string& value) = 0; | 145 const std::string& value) = 0; |
146 | 146 |
147 virtual void RegisterPPAPIInterfaceFactories( | 147 virtual void RegisterPPAPIInterfaceFactories( |
148 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; | 148 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; |
| 149 |
| 150 // Return true if given URL can use TCP/UDP socket APIs. |
| 151 virtual bool AllowSocketAPI(const GURL& url) = 0; |
149 }; | 152 }; |
150 | 153 |
151 } // namespace content | 154 } // namespace content |
152 | 155 |
153 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 156 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |