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

Side by Side Diff: trunk/src/content/renderer/render_thread_impl.cc

Issue 304593002: Revert 272983 "Change Shell / ShellClient to ServiceProvider" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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
« no previous file with comments | « trunk/src/content/renderer/render_thread_impl.h ('k') | trunk/src/mojo/apps/js/main.js » ('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/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 success = sync_message_filter()->Send(message); 1171 success = sync_message_filter()->Send(message);
1172 1172
1173 if (!success) 1173 if (!success)
1174 return scoped_ptr<gfx::GpuMemoryBuffer>(); 1174 return scoped_ptr<gfx::GpuMemoryBuffer>();
1175 1175
1176 return GpuMemoryBufferImpl::CreateFromHandle( 1176 return GpuMemoryBufferImpl::CreateFromHandle(
1177 handle, gfx::Size(width, height), internalformat) 1177 handle, gfx::Size(width, height), internalformat)
1178 .PassAs<gfx::GpuMemoryBuffer>(); 1178 .PassAs<gfx::GpuMemoryBuffer>();
1179 } 1179 }
1180 1180
1181 void RenderThreadImpl::ConnectToService( 1181 void RenderThreadImpl::AcceptConnection(
1182 const mojo::String& service_name, 1182 const mojo::String& service_name,
1183 mojo::ScopedMessagePipeHandle message_pipe) { 1183 mojo::ScopedMessagePipeHandle message_pipe) {
1184 // TODO(darin): Invent some kind of registration system to use here. 1184 // TODO(darin): Invent some kind of registration system to use here.
1185 if (service_name.To<base::StringPiece>() == kRendererService_WebUISetup) { 1185 if (service_name.To<base::StringPiece>() == kRendererService_WebUISetup) {
1186 WebUISetupImpl::Bind(message_pipe.Pass()); 1186 WebUISetupImpl::Bind(message_pipe.Pass());
1187 } else { 1187 } else {
1188 NOTREACHED() << "Unknown service name"; 1188 NOTREACHED() << "Unknown service name";
1189 } 1189 }
1190 } 1190 }
1191 1191
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 hidden_widget_count_--; 1513 hidden_widget_count_--;
1514 1514
1515 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1515 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1516 return; 1516 return;
1517 } 1517 }
1518 1518
1519 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1519 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1520 } 1520 }
1521 1521
1522 } // namespace content 1522 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/content/renderer/render_thread_impl.h ('k') | trunk/src/mojo/apps/js/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698