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

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

Issue 16514006: Update includes of message_loop_proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « ppapi/proxy/ppb_message_loop_proxy.cc ('k') | remoting/client/plugin/pepper_xmpp_proxy.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 // 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/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/threading/thread_local.h" // For testing purposes only. 10 #include "base/threading/thread_local.h" // For testing purposes only.
11 11
12 namespace ppapi { 12 namespace ppapi {
13 13
14 namespace { 14 namespace {
15 // Thread-local globals for testing. See SetPpapiGlobalsOnThreadForTest for more 15 // Thread-local globals for testing. See SetPpapiGlobalsOnThreadForTest for more
16 // information. 16 // information.
17 base::LazyInstance<base::ThreadLocalPointer<PpapiGlobals> >::Leaky 17 base::LazyInstance<base::ThreadLocalPointer<PpapiGlobals> >::Leaky
18 tls_ppapi_globals_for_test = LAZY_INSTANCE_INITIALIZER; 18 tls_ppapi_globals_for_test = LAZY_INSTANCE_INITIALIZER;
19 } // namespace 19 } // namespace
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 bool PpapiGlobals::IsPluginGlobals() const { 68 bool PpapiGlobals::IsPluginGlobals() const {
69 return false; 69 return false;
70 } 70 }
71 71
72 // static 72 // static
73 PpapiGlobals* PpapiGlobals::GetThreadLocalPointer() { 73 PpapiGlobals* PpapiGlobals::GetThreadLocalPointer() {
74 return tls_ppapi_globals_for_test.Pointer()->Get(); 74 return tls_ppapi_globals_for_test.Pointer()->Get();
75 } 75 }
76 76
77 } // namespace ppapi 77 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_message_loop_proxy.cc ('k') | remoting/client/plugin/pepper_xmpp_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698