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

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

Issue 6990059: DevTools: devtools message plumbing between worker and page processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
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_(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698