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

Side by Side Diff: ppapi/proxy/callback_tracker.cc

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
bbudge 2011/08/16 22:40:49 2011
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 "ppapi/proxy/callback_tracker.h" 5 #include "ppapi/proxy/callback_tracker.h"
6 6
7 #include "ppapi/proxy/dispatcher.h" 7 #include "ppapi/proxy/dispatcher.h"
8 #include "ppapi/proxy/ppapi_messages.h" 8 #include "ppapi/proxy/ppapi_messages.h"
9 9
10 namespace pp { 10 namespace ppapi {
11 namespace proxy { 11 namespace proxy {
12 12
13 namespace { 13 namespace {
14 14
15 struct CallbackData { 15 struct CallbackData {
16 CallbackTracker* tracker; 16 CallbackTracker* tracker;
17 uint32_t callback_id; 17 uint32_t callback_id;
18 }; 18 };
19 19
20 void CallbackProxy(void* user_data, int32_t result) { 20 void CallbackProxy(void* user_data, int32_t result) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 if (found == callback_map_.end()) { 62 if (found == callback_map_.end()) {
63 NOTREACHED(); 63 NOTREACHED();
64 return; 64 return;
65 } 65 }
66 66
67 PP_RunCompletionCallback(&found->second, param); 67 PP_RunCompletionCallback(&found->second, param);
68 callback_map_.erase(found); 68 callback_map_.erase(found);
69 } 69 }
70 70
71 } // namespace proxy 71 } // namespace proxy
72 } // namespace pp 72 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698