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

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

Issue 6708013: Add separate ContentClient interfaces for gpu/plugin/renderer processes. Since we don't have a n... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/common/content_client.h ('k') | content/content_gpu.gypi » ('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) 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
OLDNEW
« no previous file with comments | « content/common/content_client.h ('k') | content/content_gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698