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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 virtual net::NetLog* GetNetLog() OVERRIDE; | 151 virtual net::NetLog* GetNetLog() OVERRIDE; |
152 virtual content::AccessTokenStore* CreateAccessTokenStore() OVERRIDE; | 152 virtual content::AccessTokenStore* CreateAccessTokenStore() OVERRIDE; |
153 virtual bool IsFastShutdownPossible() OVERRIDE; | 153 virtual bool IsFastShutdownPossible() OVERRIDE; |
154 virtual void OverrideWebkitPrefs(content::RenderViewHost* rvh, | 154 virtual void OverrideWebkitPrefs(content::RenderViewHost* rvh, |
155 const GURL& url, | 155 const GURL& url, |
156 WebPreferences* prefs) OVERRIDE; | 156 WebPreferences* prefs) OVERRIDE; |
157 virtual void UpdateInspectorSetting(content::RenderViewHost* rvh, | 157 virtual void UpdateInspectorSetting(content::RenderViewHost* rvh, |
158 const std::string& key, | 158 const std::string& key, |
159 const std::string& value) OVERRIDE; | 159 const std::string& value) OVERRIDE; |
160 virtual void ClearInspectorSettings(content::RenderViewHost* rvh) OVERRIDE; | 160 virtual void ClearInspectorSettings(content::RenderViewHost* rvh) OVERRIDE; |
161 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) OVERRIDE; | 161 virtual void BrowserURLHandlerCreated( |
| 162 content::BrowserURLHandler* handler) OVERRIDE; |
162 virtual void ClearCache(content::RenderViewHost* rvh) OVERRIDE; | 163 virtual void ClearCache(content::RenderViewHost* rvh) OVERRIDE; |
163 virtual void ClearCookies(content::RenderViewHost* rvh) OVERRIDE; | 164 virtual void ClearCookies(content::RenderViewHost* rvh) OVERRIDE; |
164 virtual FilePath GetDefaultDownloadDirectory() OVERRIDE; | 165 virtual FilePath GetDefaultDownloadDirectory() OVERRIDE; |
165 virtual std::string GetDefaultDownloadName() OVERRIDE; | 166 virtual std::string GetDefaultDownloadName() OVERRIDE; |
166 virtual bool AllowSocketAPI(content::BrowserContext* browser_context, | 167 virtual bool AllowSocketAPI(content::BrowserContext* browser_context, |
167 const GURL& url) OVERRIDE; | 168 const GURL& url) OVERRIDE; |
168 | 169 |
169 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 170 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
170 virtual int GetCrashSignalFD(const CommandLine& command_line) OVERRIDE; | 171 virtual int GetCrashSignalFD(const CommandLine& command_line) OVERRIDE; |
171 #endif | 172 #endif |
172 #if defined(OS_WIN) | 173 #if defined(OS_WIN) |
173 virtual const wchar_t* GetResourceDllName() OVERRIDE; | 174 virtual const wchar_t* GetResourceDllName() OVERRIDE; |
174 #endif | 175 #endif |
175 #if defined(USE_NSS) | 176 #if defined(USE_NSS) |
176 virtual | 177 virtual |
177 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 178 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
178 const GURL& url) OVERRIDE; | 179 const GURL& url) OVERRIDE; |
179 #endif | 180 #endif |
180 | 181 |
181 private: | 182 private: |
182 // Set of origins that can use TCP/UDP private APIs from NaCl. | 183 // Set of origins that can use TCP/UDP private APIs from NaCl. |
183 std::set<std::string> allowed_socket_origins_; | 184 std::set<std::string> allowed_socket_origins_; |
184 | 185 |
185 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 186 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
186 }; | 187 }; |
187 | 188 |
188 } // namespace chrome | 189 } // namespace chrome |
189 | 190 |
190 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 191 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |