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

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

Issue 2622693002: Cleanup of static lists of schemes & origins that are created at startup. (Closed)
Patch Set: merge Created 3 years, 11 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/common/content_client.h ('k') | content/public/common/url_utils.h » ('j') | 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/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
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
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
OLDNEW
« no previous file with comments | « content/public/common/content_client.h ('k') | content/public/common/url_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698