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

Side by Side Diff: chrome/renderer/renderer_glue.cc

Issue 193072: Move StringPiece into the base namespace. It is colliding (Closed)
Patch Set: take 2 Created 11 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
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/user_script_slave.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This file provides the embedder's side of random webkit glue functions. 5 // This file provides the embedder's side of random webkit glue functions.
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 WideToUTF8(url, url_length, &url_string); 151 WideToUTF8(url, url_length, &url_string);
152 const std::string host = GURL(url_string).host(); 152 const std::string host = GURL(url_string).host();
153 if (!host.empty()) 153 if (!host.empty())
154 DnsPrefetchCString(host.data(), host.length()); 154 DnsPrefetchCString(host.data(), host.length());
155 } 155 }
156 156
157 void AppendToLog(const char* file, int line, const char* msg) { 157 void AppendToLog(const char* file, int line, const char* msg) {
158 logging::LogMessage(file, line).stream() << msg; 158 logging::LogMessage(file, line).stream() << msg;
159 } 159 }
160 160
161 StringPiece GetDataResource(int resource_id) { 161 base::StringPiece GetDataResource(int resource_id) {
162 return ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id); 162 return ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id);
163 } 163 }
164 164
165 #if defined(OS_WIN) 165 #if defined(OS_WIN)
166 HCURSOR LoadCursor(int cursor_id) { 166 HCURSOR LoadCursor(int cursor_id) {
167 return ResourceBundle::GetSharedInstance().LoadCursor(cursor_id); 167 return ResourceBundle::GetSharedInstance().LoadCursor(cursor_id);
168 } 168 }
169 #endif 169 #endif
170 170
171 // Clipboard glue 171 // Clipboard glue
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 void CloseIdleConnections() { 244 void CloseIdleConnections() {
245 RenderThread::current()->CloseIdleConnections(); 245 RenderThread::current()->CloseIdleConnections();
246 } 246 }
247 247
248 void SetCacheMode(bool enabled) { 248 void SetCacheMode(bool enabled) {
249 RenderThread::current()->SetCacheMode(enabled); 249 RenderThread::current()->SetCacheMode(enabled);
250 } 250 }
251 251
252 } // namespace webkit_glue 252 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/user_script_slave.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698