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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual bool AllowSetCookie(const GURL& url, | 62 virtual bool AllowSetCookie(const GURL& url, |
63 const GURL& first_party, | 63 const GURL& first_party, |
64 const std::string& cookie_line, | 64 const std::string& cookie_line, |
65 const content::ResourceContext& context, | 65 const content::ResourceContext& context, |
66 int render_process_id, | 66 int render_process_id, |
67 int render_view_id, | 67 int render_view_id, |
68 net::CookieOptions* options) OVERRIDE; | 68 net::CookieOptions* options) OVERRIDE; |
69 virtual bool AllowSaveLocalState( | 69 virtual bool AllowSaveLocalState( |
70 const content::ResourceContext& context) OVERRIDE; | 70 const content::ResourceContext& context) OVERRIDE; |
71 virtual bool AllowWorkerDatabase( | 71 virtual bool AllowWorkerDatabase( |
72 int worker_route_id, | |
73 const GURL& url, | 72 const GURL& url, |
74 const string16& name, | 73 const string16& name, |
75 const string16& display_name, | 74 const string16& display_name, |
76 unsigned long estimated_size, | 75 unsigned long estimated_size, |
77 WorkerProcessHost* worker_process_host) OVERRIDE; | 76 const content::ResourceContext& context, |
| 77 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; |
78 virtual bool AllowWorkerFileSystem( | 78 virtual bool AllowWorkerFileSystem( |
79 int worker_route_id, | |
80 const GURL& url, | 79 const GURL& url, |
81 WorkerProcessHost* worker_process_host) OVERRIDE; | 80 const content::ResourceContext& context, |
| 81 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; |
82 virtual net::URLRequestContext* OverrideRequestContextForURL( | 82 virtual net::URLRequestContext* OverrideRequestContextForURL( |
83 const GURL& url, const content::ResourceContext& context) OVERRIDE; | 83 const GURL& url, const content::ResourceContext& context) OVERRIDE; |
84 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; | 84 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; |
85 virtual void OpenItem(const FilePath& path) OVERRIDE; | 85 virtual void OpenItem(const FilePath& path) OVERRIDE; |
86 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; | 86 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; |
87 virtual void AllowCertificateError( | 87 virtual void AllowCertificateError( |
88 SSLCertErrorHandler* handler, | 88 SSLCertErrorHandler* handler, |
89 bool overridable, | 89 bool overridable, |
90 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) | 90 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) |
91 OVERRIDE; | 91 OVERRIDE; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 private: | 159 private: |
160 // Temporary directory for GetDefaultDownloadDirectory. | 160 // Temporary directory for GetDefaultDownloadDirectory. |
161 ScopedTempDir download_dir_; | 161 ScopedTempDir download_dir_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); | 163 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace content | 166 } // namespace content |
167 | 167 |
168 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 168 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |