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

Side by Side Diff: tests/fake_browser_ppapi/fake_window.cc

Issue 5631003: ppapi_proxy: Make DebugPrintf more usable.... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 10 years 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
« no previous file with comments | « tests/fake_browser_ppapi/fake_url_response_info.cc ('k') | tests/fake_browser_ppapi/main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 The Native Client Authors. All rights reserved. 2 * Copyright 2010 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 #include "native_client/tests/fake_browser_ppapi/fake_window.h" 7 #include "native_client/tests/fake_browser_ppapi/fake_window.h"
8 #include <string.h> 8 #include <string.h>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "native_client/src/include/checked_cast.h" 12 #include "native_client/src/include/checked_cast.h"
13 #include "native_client/src/include/portability.h" 13 #include "native_client/src/include/portability.h"
14 #include "native_client/src/shared/ppapi_proxy/utility.h"
15 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" 14 #include "native_client/src/shared/ppapi_proxy/plugin_var.h"
16 #include "native_client/tests/fake_browser_ppapi/fake_object.h" 15 #include "native_client/tests/fake_browser_ppapi/fake_object.h"
16 #include "native_client/tests/fake_browser_ppapi/utility.h"
17 #include "ppapi/c/dev/ppb_var_deprecated.h" 17 #include "ppapi/c/dev/ppb_var_deprecated.h"
18 #include "ppapi/c/pp_var.h" 18 #include "ppapi/c/pp_var.h"
19 19
20 using fake_browser_ppapi::Object; 20 using fake_browser_ppapi::Object;
21 using ppapi_proxy::PluginVar; 21 using ppapi_proxy::PluginVar;
22 22
23 namespace { 23 namespace {
24 24
25 PP_Var* NewStringVar(PP_Module browser_module, const char* str) { 25 PP_Var* NewStringVar(PP_Module browser_module, const char* str) {
26 static const PPB_Var_Deprecated* ppb_var = NULL; 26 static const PPB_Var_Deprecated* ppb_var = NULL;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 FakeWindow::~FakeWindow() { 130 FakeWindow::~FakeWindow() {
131 host_->var_interface()->Release(window_var_); 131 host_->var_interface()->Release(window_var_);
132 } 132 }
133 133
134 PP_Var FakeWindow::FakeWindowObject() { 134 PP_Var FakeWindow::FakeWindowObject() {
135 host_->var_interface()->AddRef(window_var_); 135 host_->var_interface()->AddRef(window_var_);
136 return window_var_; 136 return window_var_;
137 } 137 }
138 138
139 } // namespace fake_browser_ppapi 139 } // namespace fake_browser_ppapi
OLDNEW
« no previous file with comments | « tests/fake_browser_ppapi/fake_url_response_info.cc ('k') | tests/fake_browser_ppapi/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698