| 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_(NULL), plugin_(NULL), renderer_(NULL) { | 20 browser_(NULL), plugin_(NULL), renderer_(NULL), worker_(NULL) { |
| 21 } | 21 } |
| 22 | 22 |
| 23 ContentClient::~ContentClient() { | 23 ContentClient::~ContentClient() { |
| 24 } | 24 } |
| 25 | 25 |
| 26 bool ContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { | 26 bool ContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { |
| 27 return false; | 27 return false; |
| 28 } | 28 } |
| 29 | 29 |
| 30 bool ContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { | 30 bool ContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { |
| 31 return false; | 31 return false; |
| 32 } | 32 } |
| 33 | 33 |
| 34 } // namespace content | 34 } // namespace content |
| OLD | NEW |