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

Side by Side Diff: ppapi/shared_impl/ppapi_globals.cc

Issue 2762513002: Remove keep-alive impulse IPCs from NaCl modules. (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « ppapi/shared_impl/ppapi_globals.h ('k') | ppapi/shared_impl/ppapi_nacl_plugin_args.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/shared_impl/ppapi_globals.h" 5 #include "ppapi/shared_impl/ppapi_globals.h"
6 6
7 #include "base/lazy_instance.h" // For testing purposes only. 7 #include "base/lazy_instance.h" // For testing purposes only.
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_local.h" // For testing purposes only. 10 #include "base/threading/thread_local.h" // For testing purposes only.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 void PpapiGlobals::ResetMainThreadMessageLoopForTesting() { 61 void PpapiGlobals::ResetMainThreadMessageLoopForTesting() {
62 main_task_runner_ = base::ThreadTaskRunnerHandle::Get(); 62 main_task_runner_ = base::ThreadTaskRunnerHandle::Get();
63 } 63 }
64 64
65 bool PpapiGlobals::IsHostGlobals() const { return false; } 65 bool PpapiGlobals::IsHostGlobals() const { return false; }
66 66
67 bool PpapiGlobals::IsPluginGlobals() const { return false; } 67 bool PpapiGlobals::IsPluginGlobals() const { return false; }
68 68
69 void PpapiGlobals::MarkPluginIsActive() {}
70
71 // static 69 // static
72 PpapiGlobals* PpapiGlobals::GetThreadLocalPointer() { 70 PpapiGlobals* PpapiGlobals::GetThreadLocalPointer() {
73 return tls_ppapi_globals_for_test.Pointer()->Get(); 71 return tls_ppapi_globals_for_test.Pointer()->Get();
74 } 72 }
75 73
76 } // namespace ppapi 74 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppapi_globals.h ('k') | ppapi/shared_impl/ppapi_nacl_plugin_args.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698