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