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_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // This is called on the IO thread. | 285 // This is called on the IO thread. |
286 virtual bool AllowAppCache(const GURL& manifest_url, | 286 virtual bool AllowAppCache(const GURL& manifest_url, |
287 const GURL& first_party, | 287 const GURL& first_party, |
288 ResourceContext* context); | 288 ResourceContext* context); |
289 | 289 |
290 // Allow the embedder to control if a Service Worker can be associated | 290 // Allow the embedder to control if a Service Worker can be associated |
291 // with the given scope. | 291 // with the given scope. |
292 // This is called on the IO thread. | 292 // This is called on the IO thread. |
293 virtual bool AllowServiceWorker(const GURL& scope, | 293 virtual bool AllowServiceWorker(const GURL& scope, |
294 const GURL& first_party, | 294 const GURL& first_party, |
295 content::ResourceContext* context); | 295 content::ResourceContext* context, |
| 296 int render_process_id, |
| 297 int render_frame_id); |
296 | 298 |
297 // Allow the embedder to control if the given cookie can be read. | 299 // Allow the embedder to control if the given cookie can be read. |
298 // This is called on the IO thread. | 300 // This is called on the IO thread. |
299 virtual bool AllowGetCookie(const GURL& url, | 301 virtual bool AllowGetCookie(const GURL& url, |
300 const GURL& first_party, | 302 const GURL& first_party, |
301 const net::CookieList& cookie_list, | 303 const net::CookieList& cookie_list, |
302 ResourceContext* context, | 304 ResourceContext* context, |
303 int render_process_id, | 305 int render_process_id, |
304 int render_frame_id); | 306 int render_frame_id); |
305 | 307 |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 629 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
628 // implementation. Return nullptr to disable external surface video. | 630 // implementation. Return nullptr to disable external surface video. |
629 virtual ExternalVideoSurfaceContainer* | 631 virtual ExternalVideoSurfaceContainer* |
630 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 632 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
631 #endif | 633 #endif |
632 }; | 634 }; |
633 | 635 |
634 } // namespace content | 636 } // namespace content |
635 | 637 |
636 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 638 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |