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

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 9539011: Make socket permission also allow Pepper sockets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 WebPreferences* prefs) OVERRIDE; 144 WebPreferences* prefs) OVERRIDE;
145 virtual void UpdateInspectorSetting(RenderViewHost* rvh, 145 virtual void UpdateInspectorSetting(RenderViewHost* rvh,
146 const std::string& key, 146 const std::string& key,
147 const std::string& value) OVERRIDE; 147 const std::string& value) OVERRIDE;
148 virtual void ClearInspectorSettings(RenderViewHost* rvh) OVERRIDE; 148 virtual void ClearInspectorSettings(RenderViewHost* rvh) OVERRIDE;
149 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) OVERRIDE; 149 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) OVERRIDE;
150 virtual void ClearCache(RenderViewHost* rvh) OVERRIDE; 150 virtual void ClearCache(RenderViewHost* rvh) OVERRIDE;
151 virtual void ClearCookies(RenderViewHost* rvh) OVERRIDE; 151 virtual void ClearCookies(RenderViewHost* rvh) OVERRIDE;
152 virtual FilePath GetDefaultDownloadDirectory() OVERRIDE; 152 virtual FilePath GetDefaultDownloadDirectory() OVERRIDE;
153 virtual std::string GetDefaultDownloadName() OVERRIDE; 153 virtual std::string GetDefaultDownloadName() OVERRIDE;
154 virtual bool AllowSocketAPI(const GURL& url) OVERRIDE; 154 virtual bool AllowSocketAPI(content::BrowserContext* browser_context,
155 const GURL& url) OVERRIDE;
155 156
156 #if defined(OS_POSIX) && !defined(OS_MACOSX) 157 #if defined(OS_POSIX) && !defined(OS_MACOSX)
157 virtual int GetCrashSignalFD(const CommandLine& command_line) OVERRIDE; 158 virtual int GetCrashSignalFD(const CommandLine& command_line) OVERRIDE;
158 #endif 159 #endif
159 #if defined(OS_WIN) 160 #if defined(OS_WIN)
160 virtual const wchar_t* GetResourceDllName() OVERRIDE; 161 virtual const wchar_t* GetResourceDllName() OVERRIDE;
161 #endif 162 #endif
162 #if defined(USE_NSS) 163 #if defined(USE_NSS)
163 virtual 164 virtual
164 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 165 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
165 const GURL& url) OVERRIDE; 166 const GURL& url) OVERRIDE;
166 #endif 167 #endif
167 168
168 private: 169 private:
169 // Set of origins that can use TCP/UDP private APIs from NaCl. 170 // Set of origins that can use TCP/UDP private APIs from NaCl.
170 std::set<std::string> allowed_socket_origins_; 171 std::set<std::string> allowed_socket_origins_;
171 172
172 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 173 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
173 }; 174 };
174 175
175 } // namespace chrome 176 } // namespace chrome
176 177
177 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 178 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | chrome/browser/chrome_content_browser_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698