Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1106)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 625533002: Respect content settings for Service Worker registration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@testing
Patch Set: sync Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 // Returns the default favicon. The callee doesn't own the given bitmap. 268 // Returns the default favicon. The callee doesn't own the given bitmap.
269 virtual const gfx::ImageSkia* GetDefaultFavicon(); 269 virtual const gfx::ImageSkia* GetDefaultFavicon();
270 270
271 // Allow the embedder to control if an AppCache can be used for the given url. 271 // Allow the embedder to control if an AppCache can be used for the given url.
272 // This is called on the IO thread. 272 // This is called on the IO thread.
273 virtual bool AllowAppCache(const GURL& manifest_url, 273 virtual bool AllowAppCache(const GURL& manifest_url,
274 const GURL& first_party, 274 const GURL& first_party,
275 ResourceContext* context); 275 ResourceContext* context);
276 276
277 // Allow the embedder to control if a Service Worker can be associated
278 // with the given scope.
279 // This is called on the IO thread.
280 virtual bool AllowServiceWorker(const GURL& scope,
281 const GURL& first_party,
282 content::ResourceContext* context);
283
277 // Allow the embedder to control if the given cookie can be read. 284 // Allow the embedder to control if the given cookie can be read.
278 // This is called on the IO thread. 285 // This is called on the IO thread.
279 virtual bool AllowGetCookie(const GURL& url, 286 virtual bool AllowGetCookie(const GURL& url,
280 const GURL& first_party, 287 const GURL& first_party,
281 const net::CookieList& cookie_list, 288 const net::CookieList& cookie_list,
282 ResourceContext* context, 289 ResourceContext* context,
283 int render_process_id, 290 int render_process_id,
284 int render_frame_id); 291 int render_frame_id);
285 292
286 // Allow the embedder to control if the given cookie can be set. 293 // Allow the embedder to control if the given cookie can be set.
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 // camera. Note that this does not query the user. |type| must be 654 // camera. Note that this does not query the user. |type| must be
648 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. 655 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE.
649 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, 656 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context,
650 const GURL& security_origin, 657 const GURL& security_origin,
651 MediaStreamType type); 658 MediaStreamType type);
652 }; 659 };
653 660
654 } // namespace content 661 } // namespace content
655 662
656 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 663 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_request_handler.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698