| 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 "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "content/public/common/origin_util.h" | 10 #include "content/public/common/origin_util.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 ContentRendererClient* SetRendererClientForTesting(ContentRendererClient* r) { | 56 ContentRendererClient* SetRendererClientForTesting(ContentRendererClient* r) { |
| 57 return InternalTestInitializer::SetRenderer(r); | 57 return InternalTestInitializer::SetRenderer(r); |
| 58 } | 58 } |
| 59 | 59 |
| 60 ContentUtilityClient* SetUtilityClientForTesting(ContentUtilityClient* u) { | 60 ContentUtilityClient* SetUtilityClientForTesting(ContentUtilityClient* u) { |
| 61 return InternalTestInitializer::SetUtility(u); | 61 return InternalTestInitializer::SetUtility(u); |
| 62 } | 62 } |
| 63 | 63 |
| 64 ContentClient::Schemes::Schemes() = default; |
| 65 ContentClient::Schemes::~Schemes() = default; |
| 66 |
| 64 ContentClient::ContentClient() | 67 ContentClient::ContentClient() |
| 65 : browser_(NULL), | 68 : browser_(NULL), |
| 66 gpu_(NULL), | 69 gpu_(NULL), |
| 67 renderer_(NULL), | 70 renderer_(NULL), |
| 68 utility_(NULL) {} | 71 utility_(NULL) {} |
| 69 | 72 |
| 70 ContentClient::~ContentClient() { | 73 ContentClient::~ContentClient() { |
| 71 } | 74 } |
| 72 | 75 |
| 73 bool ContentClient::CanSendWhileSwappedOut(const IPC::Message* message) { | 76 bool ContentClient::CanSendWhileSwappedOut(const IPC::Message* message) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 bool ContentClient::UsingSynchronousCompositing() { | 135 bool ContentClient::UsingSynchronousCompositing() { |
| 133 return false; | 136 return false; |
| 134 } | 137 } |
| 135 | 138 |
| 136 media::MediaClientAndroid* ContentClient::GetMediaClientAndroid() { | 139 media::MediaClientAndroid* ContentClient::GetMediaClientAndroid() { |
| 137 return nullptr; | 140 return nullptr; |
| 138 } | 141 } |
| 139 #endif // OS_ANDROID | 142 #endif // OS_ANDROID |
| 140 | 143 |
| 141 } // namespace content | 144 } // namespace content |
| OLD | NEW |