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

Side by Side Diff: content/public/common/content_client.cc

Issue 1072933006: Support whitelisting to handle insecure origins as trustworthy origins (chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added test, added IsOriginSecure plumbing etc Created 5 years, 8 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 #include "content/public/common/content_client.h" 5 #include "content/public/common/content_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string_piece.h" 8 #include "base/strings/string_piece.h"
9 #include "content/public/common/origin_util.h"
9 #include "content/public/common/user_agent.h" 10 #include "content/public/common/user_agent.h"
10 #include "ui/gfx/image/image.h" 11 #include "ui/gfx/image/image.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 static ContentClient* g_client; 15 static ContentClient* g_client;
15 16
16 class InternalTestInitializer { 17 class InternalTestInitializer {
17 public: 18 public:
18 static ContentBrowserClient* SetBrowser(ContentBrowserClient* b) { 19 static ContentBrowserClient* SetBrowser(ContentBrowserClient* b) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 105 }
105 106
106 #if defined(OS_MACOSX) && !defined(OS_IOS) 107 #if defined(OS_MACOSX) && !defined(OS_IOS)
107 bool ContentClient::GetSandboxProfileForSandboxType( 108 bool ContentClient::GetSandboxProfileForSandboxType(
108 int sandbox_type, 109 int sandbox_type,
109 int* sandbox_profile_resource_id) const { 110 int* sandbox_profile_resource_id) const {
110 return false; 111 return false;
111 } 112 }
112 #endif 113 #endif
113 114
115 bool ContentClient::IsOriginTrustWorthy(const GURL& url) const {
116 return IsOriginSecure(url);
palmer 2015/04/20 22:16:18 So, this calls the 1 in content::, right? This amb
117 }
118
114 } // namespace content 119 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698