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 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 Loading... |
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_ |
OLD | NEW |