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

Side by Side Diff: mojo/examples/pepper_container_app/mojo_ppapi_globals.cc

Issue 600553002: PPAPI: Disallow blocking callbacks while handling a blocking message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try to improve comment Created 6 years, 2 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 | « no previous file | ppapi/api/pp_errors.idl » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/examples/pepper_container_app/mojo_ppapi_globals.h" 5 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "mojo/examples/pepper_container_app/plugin_instance.h" 10 #include "mojo/examples/pepper_container_app/plugin_instance.h"
(...skipping 26 matching lines...) Expand all
37 const base::Closure& closure, 37 const base::Closure& closure,
38 int64 delay_ms) OVERRIDE { 38 int64 delay_ms) OVERRIDE {
39 main_thread_message_loop_->PostDelayedTask( 39 main_thread_message_loop_->PostDelayedTask(
40 from_here, closure, base::TimeDelta::FromMilliseconds(delay_ms)); 40 from_here, closure, base::TimeDelta::FromMilliseconds(delay_ms));
41 } 41 }
42 42
43 virtual base::MessageLoopProxy* GetMessageLoopProxy() OVERRIDE { 43 virtual base::MessageLoopProxy* GetMessageLoopProxy() OVERRIDE {
44 return main_thread_message_loop_.get(); 44 return main_thread_message_loop_.get();
45 } 45 }
46 46
47 virtual bool CurrentlyHandlingBlockingMessage() OVERRIDE {
48 return false;
49 }
50
47 // ppapi::thunk::PPB_MessageLoop_API implementation. 51 // ppapi::thunk::PPB_MessageLoop_API implementation.
48 virtual int32_t AttachToCurrentThread() OVERRIDE { 52 virtual int32_t AttachToCurrentThread() OVERRIDE {
49 NOTIMPLEMENTED(); 53 NOTIMPLEMENTED();
50 return PP_ERROR_FAILED; 54 return PP_ERROR_FAILED;
51 } 55 }
52 56
53 virtual int32_t Run() OVERRIDE { 57 virtual int32_t Run() OVERRIDE {
54 NOTIMPLEMENTED(); 58 NOTIMPLEMENTED();
55 return PP_ERROR_FAILED; 59 return PP_ERROR_FAILED;
56 } 60 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 NOTIMPLEMENTED(); 179 NOTIMPLEMENTED();
176 return std::string(); 180 return std::string();
177 } 181 }
178 182
179 void MojoPpapiGlobals::PreCacheFontForFlash(const void* logfontw) { 183 void MojoPpapiGlobals::PreCacheFontForFlash(const void* logfontw) {
180 NOTIMPLEMENTED(); 184 NOTIMPLEMENTED();
181 } 185 }
182 186
183 } // namespace examples 187 } // namespace examples
184 } // namespace mojo 188 } // namespace mojo
OLDNEW
« no previous file with comments | « no previous file | ppapi/api/pp_errors.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698