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

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

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
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/public/browser/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 static gfx::ImageSkia* empty = new gfx::ImageSkia(); 109 static gfx::ImageSkia* empty = new gfx::ImageSkia();
110 return empty; 110 return empty;
111 } 111 }
112 112
113 bool ContentBrowserClient::AllowAppCache(const GURL& manifest_url, 113 bool ContentBrowserClient::AllowAppCache(const GURL& manifest_url,
114 const GURL& first_party, 114 const GURL& first_party,
115 ResourceContext* context) { 115 ResourceContext* context) {
116 return true; 116 return true;
117 } 117 }
118 118
119 bool ContentBrowserClient::AllowServiceWorker(
120 const GURL& scope,
121 const GURL& document_url,
122 content::ResourceContext* context) {
123 return true;
124 }
125
119 bool ContentBrowserClient::AllowGetCookie(const GURL& url, 126 bool ContentBrowserClient::AllowGetCookie(const GURL& url,
120 const GURL& first_party, 127 const GURL& first_party,
121 const net::CookieList& cookie_list, 128 const net::CookieList& cookie_list,
122 ResourceContext* context, 129 ResourceContext* context,
123 int render_process_id, 130 int render_process_id,
124 int render_frame_id) { 131 int render_frame_id) {
125 return true; 132 return true;
126 } 133 }
127 134
128 bool ContentBrowserClient::AllowSetCookie(const GURL& url, 135 bool ContentBrowserClient::AllowSetCookie(const GURL& url,
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 #endif 360 #endif
354 361
355 bool ContentBrowserClient::CheckMediaAccessPermission( 362 bool ContentBrowserClient::CheckMediaAccessPermission(
356 BrowserContext* browser_context, 363 BrowserContext* browser_context,
357 const GURL& security_origin, 364 const GURL& security_origin,
358 MediaStreamType type) { 365 MediaStreamType type) {
359 return false; 366 return false;
360 } 367 }
361 368
362 } // namespace content 369 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698