OLD | NEW |
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/ppb_var_proxy.h" | 5 #include "ppapi/proxy/ppb_var_proxy.h" |
6 | 6 |
7 #include "ppapi/c/pp_var.h" | 7 #include "ppapi/c/pp_var.h" |
8 #include "ppapi/c/ppb_var.h" | 8 #include "ppapi/c/ppb_var.h" |
9 #include "ppapi/proxy/plugin_resource_tracker.h" | 9 #include "ppapi/proxy/plugin_resource_tracker.h" |
10 #include "ppapi/proxy/plugin_var_tracker.h" | 10 #include "ppapi/proxy/plugin_var_tracker.h" |
11 #include "ppapi/shared_impl/var.h" | 11 #include "ppapi/shared_impl/var.h" |
12 | 12 |
13 using ppapi::StringVar; | 13 namespace ppapi { |
14 | |
15 namespace pp { | |
16 namespace proxy { | 14 namespace proxy { |
17 | 15 |
18 namespace { | 16 namespace { |
19 | 17 |
20 // PPP_Var plugin -------------------------------------------------------------- | 18 // PPP_Var plugin -------------------------------------------------------------- |
21 | 19 |
22 void AddRefVar(PP_Var var) { | 20 void AddRefVar(PP_Var var) { |
23 PluginResourceTracker::GetInstance()->var_tracker().AddRefVar(var); | 21 PluginResourceTracker::GetInstance()->var_tracker().AddRefVar(var); |
24 } | 22 } |
25 | 23 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 return &info; | 73 return &info; |
76 } | 74 } |
77 | 75 |
78 bool PPB_Var_Proxy::OnMessageReceived(const IPC::Message& msg) { | 76 bool PPB_Var_Proxy::OnMessageReceived(const IPC::Message& msg) { |
79 // All PPB_Var calls are handled locally; there is no need to send or receive | 77 // All PPB_Var calls are handled locally; there is no need to send or receive |
80 // messages here. | 78 // messages here. |
81 return false; | 79 return false; |
82 } | 80 } |
83 | 81 |
84 } // namespace proxy | 82 } // namespace proxy |
85 } // namespace pp | 83 } // namespace ppapi |
OLD | NEW |