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

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

Issue 7274031: Wholesale move of debugger sources to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OWNERS and DEPS. Created 9 years, 5 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 #include "base/string_piece.h" 7 #include "base/string_piece.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 static ContentClient* g_client; 11 static ContentClient* g_client;
12 12
13 void SetContentClient(ContentClient* client) { 13 void SetContentClient(ContentClient* client) {
14 g_client = client; 14 g_client = client;
15 } 15 }
16 16
17 ContentClient* GetContentClient() { 17 ContentClient* GetContentClient() {
18 return g_client; 18 return g_client;
19 } 19 }
20 20
21 ContentClient::ContentClient() 21 ContentClient::ContentClient()
22 : browser_(NULL), plugin_(NULL), renderer_(NULL), utility_(NULL) { 22 : browser_(NULL), plugin_(NULL), renderer_(NULL), utility_(NULL) {
23 } 23 }
24 24
25 ContentClient::~ContentClient() { 25 ContentClient::~ContentClient() {
26 } 26 }
27 27
28 bool ContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) {
29 return false;
30 }
31
32 bool ContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) {
33 return false;
34 }
35
36 std::string ContentClient::GetUserAgent(bool mimic_windows) const {
37 return std::string();
38 }
39
40 string16 ContentClient::GetLocalizedString(int message_id) const {
41 return string16();
42 }
43
44 // Return the contents of a resource in a StringPiece given the resource id.
45 base::StringPiece ContentClient::GetDataResource(int resource_id) const {
46 return base::StringPiece();
47 }
48
49 #if defined(OS_WIN)
50 bool ContentClient::SandboxPlugin(CommandLine* command_line,
51 sandbox::TargetPolicy* policy) {
52 return false;
53 }
54 #endif
55
56 } // namespace content 28 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698