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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 private: | 176 private: |
172 // Temporary directory for GetDefaultDownloadDirectory. | 177 // Temporary directory for GetDefaultDownloadDirectory. |
173 ScopedTempDir download_dir_; | 178 ScopedTempDir download_dir_; |
174 | 179 |
175 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); | 180 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); |
176 }; | 181 }; |
177 | 182 |
178 } // namespace content | 183 } // namespace content |
179 | 184 |
180 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 185 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |