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

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 10342013: Generate and connect a Pepper identifier for Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup as per brettw; move to serializedreturnvar in the host msg bounce step Created 8 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) 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/pepper/pepper_plugin_delegate_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <cstddef> 8 #include <cstddef>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 #endif 1273 #endif
1274 } 1274 }
1275 1275
1276 double PepperPluginDelegateImpl::GetLocalTimeZoneOffset(base::Time t) { 1276 double PepperPluginDelegateImpl::GetLocalTimeZoneOffset(base::Time t) {
1277 double result = 0.0; 1277 double result = 0.0;
1278 render_view_->Send(new PepperMsg_GetLocalTimeZoneOffset( 1278 render_view_->Send(new PepperMsg_GetLocalTimeZoneOffset(
1279 t, &result)); 1279 t, &result));
1280 return result; 1280 return result;
1281 } 1281 }
1282 1282
1283 std::string PepperPluginDelegateImpl::GetDeviceID() {
1284 std::string result;
1285 render_view_->Send(new PepperMsg_GetDeviceID(&result));
1286 return result;
1287 }
1288
1283 base::SharedMemory* PepperPluginDelegateImpl::CreateAnonymousSharedMemory( 1289 base::SharedMemory* PepperPluginDelegateImpl::CreateAnonymousSharedMemory(
1284 uint32_t size) { 1290 uint32_t size) {
1285 if (size == 0) 1291 if (size == 0)
1286 return NULL; 1292 return NULL;
1287 base::SharedMemoryHandle handle; 1293 base::SharedMemoryHandle handle;
1288 if (!render_view_->Send( 1294 if (!render_view_->Send(
1289 new ChildProcessHostMsg_SyncAllocateSharedMemory(size, &handle))) { 1295 new ChildProcessHostMsg_SyncAllocateSharedMemory(size, &handle))) {
1290 DLOG(WARNING) << "Browser allocation request message failed"; 1296 DLOG(WARNING) << "Browser allocation request message failed";
1291 return NULL; 1297 return NULL;
1292 } 1298 }
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 mouse_lock_instances_.erase(it); 1628 mouse_lock_instances_.erase(it);
1623 } 1629 }
1624 } 1630 }
1625 1631
1626 webkit_glue::ClipboardClient* 1632 webkit_glue::ClipboardClient*
1627 PepperPluginDelegateImpl::CreateClipboardClient() const { 1633 PepperPluginDelegateImpl::CreateClipboardClient() const {
1628 return new RendererClipboardClient; 1634 return new RendererClipboardClient;
1629 } 1635 }
1630 1636
1631 } // namespace content 1637 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698