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

Side by Side Diff: ppapi/proxy/broker_dispatcher.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ppapi/proxy/broker_dispatcher.h" 5 #include "ppapi/proxy/broker_dispatcher.h"
6 6
7 #include "base/sync_socket.h" 7 #include "base/sync_socket.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/proxy/ppapi_messages.h" 9 #include "ppapi/proxy/ppapi_messages.h"
10 10
11 namespace pp { 11 namespace ppapi {
12 namespace proxy { 12 namespace proxy {
13 13
14 namespace { 14 namespace {
15 15
16 int32_t PlatformFileToInt(base::PlatformFile handle) { 16 int32_t PlatformFileToInt(base::PlatformFile handle) {
17 #if defined(OS_WIN) 17 #if defined(OS_WIN)
18 return static_cast<int32_t>(reinterpret_cast<intptr_t>(handle)); 18 return static_cast<int32_t>(reinterpret_cast<intptr_t>(handle));
19 #elif defined(OS_POSIX) 19 #elif defined(OS_POSIX)
20 return handle; 20 return handle;
21 #else 21 #else
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // The renderer has crashed or exited. This channel and all instances 104 // The renderer has crashed or exited. This channel and all instances
105 // associated with it are no longer valid. 105 // associated with it are no longer valid.
106 // TODO(ddorwin): This causes the broker process to exit, which may not be 106 // TODO(ddorwin): This causes the broker process to exit, which may not be
107 // desirable in some use cases. 107 // desirable in some use cases.
108 delete this; 108 delete this;
109 } 109 }
110 110
111 111
112 } // namespace proxy 112 } // namespace proxy
113 } // namespace pp 113 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698