| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 167 |
| 168 // Return true if the SetCookie request will be handled by the embedder. | 168 // Return true if the SetCookie request will be handled by the embedder. |
| 169 // Cookies to be set are passed in the value parameter. | 169 // Cookies to be set are passed in the value parameter. |
| 170 virtual bool HandleSetCookieRequest(RenderView* sender, | 170 virtual bool HandleSetCookieRequest(RenderView* sender, |
| 171 const GURL& url, | 171 const GURL& url, |
| 172 const GURL& first_party_for_cookies, | 172 const GURL& first_party_for_cookies, |
| 173 const std::string& value) = 0; | 173 const std::string& value) = 0; |
| 174 | 174 |
| 175 virtual void RegisterPPAPIInterfaceFactories( | 175 virtual void RegisterPPAPIInterfaceFactories( |
| 176 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; | 176 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; |
| 177 | |
| 178 // Return true if given URL can use TCP/UDP socket APIs. | |
| 179 virtual bool AllowSocketAPI(const GURL& url) = 0; | |
| 180 }; | 177 }; |
| 181 | 178 |
| 182 } // namespace content | 179 } // namespace content |
| 183 | 180 |
| 184 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 181 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |