| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const GURL& url, | 73 const GURL& url, |
| 74 const string16& name, | 74 const string16& name, |
| 75 const string16& display_name, | 75 const string16& display_name, |
| 76 unsigned long estimated_size, | 76 unsigned long estimated_size, |
| 77 content::ResourceContext* context, | 77 content::ResourceContext* context, |
| 78 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; | 78 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; |
| 79 virtual bool AllowWorkerFileSystem( | 79 virtual bool AllowWorkerFileSystem( |
| 80 const GURL& url, | 80 const GURL& url, |
| 81 content::ResourceContext* context, | 81 content::ResourceContext* context, |
| 82 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; | 82 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; |
| 83 virtual bool AllowWorkerIndexedDB( |
| 84 const GURL& url, |
| 85 const string16& name, |
| 86 content::ResourceContext* context, |
| 87 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; |
| 83 virtual net::URLRequestContext* OverrideRequestContextForURL( | 88 virtual net::URLRequestContext* OverrideRequestContextForURL( |
| 84 const GURL& url, content::ResourceContext* context) OVERRIDE; | 89 const GURL& url, content::ResourceContext* context) OVERRIDE; |
| 85 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; | 90 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; |
| 86 virtual void OpenItem(const FilePath& path) OVERRIDE; | 91 virtual void OpenItem(const FilePath& path) OVERRIDE; |
| 87 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; | 92 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; |
| 88 virtual void AllowCertificateError( | 93 virtual void AllowCertificateError( |
| 89 int render_process_id, | 94 int render_process_id, |
| 90 int render_view_id, | 95 int render_view_id, |
| 91 int cert_error, | 96 int cert_error, |
| 92 const net::SSLInfo& ssl_info, | 97 const net::SSLInfo& ssl_info, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 private: | 175 private: |
| 171 // Temporary directory for GetDefaultDownloadDirectory. | 176 // Temporary directory for GetDefaultDownloadDirectory. |
| 172 ScopedTempDir download_dir_; | 177 ScopedTempDir download_dir_; |
| 173 | 178 |
| 174 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); | 179 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); |
| 175 }; | 180 }; |
| 176 | 181 |
| 177 } // namespace content | 182 } // namespace content |
| 178 | 183 |
| 179 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 184 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |