Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 9379002: Move socket API restriction check to browser process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/renderer/mock_content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698