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 #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 Loading... | |
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 |
OLD | NEW |