| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual void OpenItem(const FilePath& path) OVERRIDE; | 84 virtual void OpenItem(const FilePath& path) OVERRIDE; |
| 85 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; | 85 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; |
| 86 virtual void AllowCertificateError( | 86 virtual void AllowCertificateError( |
| 87 SSLCertErrorHandler* handler, | 87 SSLCertErrorHandler* handler, |
| 88 bool overridable, | 88 bool overridable, |
| 89 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) | 89 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) |
| 90 OVERRIDE; | 90 OVERRIDE; |
| 91 virtual void SelectClientCertificate( | 91 virtual void SelectClientCertificate( |
| 92 int render_process_id, | 92 int render_process_id, |
| 93 int render_view_id, | 93 int render_view_id, |
| 94 SSLClientAuthHandler* handler) OVERRIDE; | 94 const net::HttpNetworkSession* network_session, |
| 95 net::SSLCertRequestInfo* cert_request_info, |
| 96 const base::Callback<void(net::X509Certificate*)>& callback) OVERRIDE; |
| 95 virtual void AddNewCertificate( | 97 virtual void AddNewCertificate( |
| 96 net::URLRequest* request, | 98 net::URLRequest* request, |
| 97 net::X509Certificate* cert, | 99 net::X509Certificate* cert, |
| 98 int render_process_id, | 100 int render_process_id, |
| 99 int render_view_id) OVERRIDE; | 101 int render_view_id) OVERRIDE; |
| 100 virtual void RequestDesktopNotificationPermission( | 102 virtual void RequestDesktopNotificationPermission( |
| 101 const GURL& source_origin, | 103 const GURL& source_origin, |
| 102 int callback_context, | 104 int callback_context, |
| 103 int render_process_id, | 105 int render_process_id, |
| 104 int render_view_id) OVERRIDE; | 106 int render_view_id) OVERRIDE; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 private: | 161 private: |
| 160 // Temporary directory for GetDefaultDownloadDirectory. | 162 // Temporary directory for GetDefaultDownloadDirectory. |
| 161 ScopedTempDir download_dir_; | 163 ScopedTempDir download_dir_; |
| 162 | 164 |
| 163 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); | 165 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); |
| 164 }; | 166 }; |
| 165 | 167 |
| 166 } // namespace content | 168 } // namespace content |
| 167 | 169 |
| 168 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 170 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |