OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/content_client.h" | 5 #include "content/common/content_client.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 static ContentClient* g_client; | 9 static ContentClient* g_client; |
10 | 10 |
11 void SetContentClient(ContentClient* client) { | 11 void SetContentClient(ContentClient* client) { |
12 g_client = client; | 12 g_client = client; |
13 } | 13 } |
14 | 14 |
15 ContentClient* GetContentClient() { | 15 ContentClient* GetContentClient() { |
16 return g_client; | 16 return g_client; |
17 } | 17 } |
18 | 18 |
19 ContentClient::ContentClient() : | 19 ContentClient::ContentClient() : |
20 browser_client_(NULL) { | 20 browser_(NULL), gpu_(NULL), plugin_(NULL), renderer_(NULL) { |
21 } | 21 } |
22 | 22 |
23 ContentClient::~ContentClient() { | 23 ContentClient::~ContentClient() { |
24 } | 24 } |
25 | 25 |
26 } // namespace content | 26 } // namespace content |
OLD | NEW |