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

Side by Side Diff: Source/web/WebGeolocationPermissionRequestManager.cpp

Issue 843683005: Fix a bit of C++11 in web/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 15 matching lines...) Expand all
26 #include "config.h" 26 #include "config.h"
27 #include "public/web/WebGeolocationPermissionRequestManager.h" 27 #include "public/web/WebGeolocationPermissionRequestManager.h"
28 28
29 #include "modules/geolocation/Geolocation.h" 29 #include "modules/geolocation/Geolocation.h"
30 #include "public/web/WebGeolocationPermissionRequest.h" 30 #include "public/web/WebGeolocationPermissionRequest.h"
31 #include "wtf/HashMap.h" 31 #include "wtf/HashMap.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 typedef PersistentHeapHashMap<Member<Geolocation>, int> GeolocationIdMap; 35 typedef PersistentHeapHashMap<Member<Geolocation>, int> GeolocationIdMap;
36 typedef PersistentHeapHashMap<int, Member<Geolocation> > IdGeolocationMap; 36 typedef PersistentHeapHashMap<int, Member<Geolocation>> IdGeolocationMap;
37 37
38 class WebGeolocationPermissionRequestManagerPrivate { 38 class WebGeolocationPermissionRequestManagerPrivate {
39 public: 39 public:
40 GeolocationIdMap m_geolocationIdMap; 40 GeolocationIdMap m_geolocationIdMap;
41 IdGeolocationMap m_idGeolocationMap; 41 IdGeolocationMap m_idGeolocationMap;
42 }; 42 };
43 43
44 int WebGeolocationPermissionRequestManager::add(const WebGeolocationPermissionRe quest& permissionRequest) 44 int WebGeolocationPermissionRequestManager::add(const WebGeolocationPermissionRe quest& permissionRequest)
45 { 45 {
46 Geolocation* geolocation = permissionRequest.geolocation(); 46 Geolocation* geolocation = permissionRequest.geolocation();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 { 80 {
81 m_private.reset(new WebGeolocationPermissionRequestManagerPrivate); 81 m_private.reset(new WebGeolocationPermissionRequestManagerPrivate);
82 } 82 }
83 83
84 void WebGeolocationPermissionRequestManager::reset() 84 void WebGeolocationPermissionRequestManager::reset()
85 { 85 {
86 m_private.reset(0); 86 m_private.reset(0);
87 } 87 }
88 88
89 } // namespace blink 89 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698