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

Side by Side Diff: ios/web/webui/url_data_source_ios.mm

Issue 2856093004: Generalize content::URLDataSource so that it can be used by the network service. (Closed)
Patch Set: Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ios/web/public/url_data_source_ios.h" 5 #include "ios/web/public/url_data_source_ios.h"
6 6
7 #import "ios/web/public/web_client.h" 7 #import "ios/web/public/web_client.h"
8 #include "ios/web/webui/url_data_manager_ios.h" 8 #include "ios/web/webui/url_data_manager_ios.h"
9 #include "net/url_request/url_request.h" 9 #include "net/url_request/url_request.h"
10 10
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 std::string URLDataSourceIOS::GetContentSecurityPolicyObjectSrc() const { 30 std::string URLDataSourceIOS::GetContentSecurityPolicyObjectSrc() const {
31 return "object-src 'none';"; 31 return "object-src 'none';";
32 } 32 }
33 33
34 bool URLDataSourceIOS::ShouldDenyXFrameOptions() const { 34 bool URLDataSourceIOS::ShouldDenyXFrameOptions() const {
35 return true; 35 return true;
36 } 36 }
37 37
38 bool URLDataSourceIOS::ShouldServiceRequest( 38 bool URLDataSourceIOS::ShouldServiceRequest(const GURL& url) const {
39 const net::URLRequest* request) const { 39 return GetWebClient()->IsAppSpecificURL(url);
40 if (GetWebClient()->IsAppSpecificURL(request->url()))
41 return true;
42 return false;
43 } 40 }
44 41
45 } // namespace web 42 } // namespace web
OLDNEW
« chrome/browser/ui/webui/favicon_source.cc ('K') | « ios/web/webui/url_data_manager_ios_backend.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698