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

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

Issue 10869073: Split user agent code out of the 'glue' target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to trunk Created 8 years, 3 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/content_tests.gypi ('k') | content/shell/shell_content_client.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/public/common/content_client.h" 5 #include "content/public/common/content_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_piece.h" 8 #include "base/string_piece.h"
9 #include "ui/gfx/image/image.h" 9 #include "ui/gfx/image/image.h"
10 #include "webkit/glue/webkit_glue.h"
11 #include "webkit/plugins/ppapi/host_globals.h" 10 #include "webkit/plugins/ppapi/host_globals.h"
11 #include "webkit/user_agent/user_agent.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 static ContentClient* g_client; 15 static ContentClient* g_client;
16 16
17 void SetContentClient(ContentClient* client) { 17 void SetContentClient(ContentClient* client) {
18 g_client = client; 18 g_client = client;
19 19
20 // Set the default user agent as provided by the client. We need to make 20 // Set the default user agent as provided by the client. We need to make
21 // sure this is done before webkit_glue::GetUserAgent() is called (so that 21 // sure this is done before webkit_glue::GetUserAgent() is called (so that
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 int* sandbox_profile_resource_id) const { 89 int* sandbox_profile_resource_id) const {
90 return false; 90 return false;
91 } 91 }
92 92
93 std::string ContentClient::GetCarbonInterposePath() const { 93 std::string ContentClient::GetCarbonInterposePath() const {
94 return std::string(); 94 return std::string();
95 } 95 }
96 #endif 96 #endif
97 97
98 } // namespace content 98 } // namespace content
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/shell/shell_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698