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_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 WebPreferences* prefs) OVERRIDE; | 145 WebPreferences* prefs) OVERRIDE; |
146 virtual void UpdateInspectorSetting(RenderViewHost* rvh, | 146 virtual void UpdateInspectorSetting(RenderViewHost* rvh, |
147 const std::string& key, | 147 const std::string& key, |
148 const std::string& value) OVERRIDE; | 148 const std::string& value) OVERRIDE; |
149 virtual void ClearInspectorSettings(RenderViewHost* rvh) OVERRIDE; | 149 virtual void ClearInspectorSettings(RenderViewHost* rvh) OVERRIDE; |
150 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) OVERRIDE; | 150 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) OVERRIDE; |
151 virtual void ClearCache(RenderViewHost* rvh) OVERRIDE; | 151 virtual void ClearCache(RenderViewHost* rvh) OVERRIDE; |
152 virtual void ClearCookies(RenderViewHost* rvh) OVERRIDE; | 152 virtual void ClearCookies(RenderViewHost* rvh) OVERRIDE; |
153 virtual FilePath GetDefaultDownloadDirectory() OVERRIDE; | 153 virtual FilePath GetDefaultDownloadDirectory() OVERRIDE; |
154 virtual std::string GetDefaultDownloadName() OVERRIDE; | 154 virtual std::string GetDefaultDownloadName() OVERRIDE; |
155 virtual bool AllowSocketAPI(const GURL& url) OVERRIDE; | 155 virtual bool AllowSocketAPI(BrowserContext* browser_context, |
| 156 const GURL& url) OVERRIDE; |
156 | 157 |
157 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 158 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
158 virtual int GetCrashSignalFD(const CommandLine& command_line) OVERRIDE; | 159 virtual int GetCrashSignalFD(const CommandLine& command_line) OVERRIDE; |
159 #endif | 160 #endif |
160 | 161 |
161 #if defined(OS_WIN) | 162 #if defined(OS_WIN) |
162 virtual const wchar_t* GetResourceDllName() OVERRIDE; | 163 virtual const wchar_t* GetResourceDllName() OVERRIDE; |
163 #endif | 164 #endif |
164 | 165 |
165 #if defined(USE_NSS) | 166 #if defined(USE_NSS) |
166 virtual | 167 virtual |
167 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 168 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
168 const GURL& url) OVERRIDE; | 169 const GURL& url) OVERRIDE; |
169 #endif | 170 #endif |
170 | 171 |
171 private: | 172 private: |
172 // Temporary directory for GetDefaultDownloadDirectory. | 173 // Temporary directory for GetDefaultDownloadDirectory. |
173 ScopedTempDir download_dir_; | 174 ScopedTempDir download_dir_; |
174 | 175 |
175 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); | 176 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); |
176 }; | 177 }; |
177 | 178 |
178 } // namespace content | 179 } // namespace content |
179 | 180 |
180 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 181 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |