| OLD | NEW |
| 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 "components/nacl/renderer/progress_event.h" | 5 #include "components/nacl/renderer/progress_event.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | |
| 11 #include "components/nacl/renderer/ppb_nacl_private.h" | 10 #include "components/nacl/renderer/ppb_nacl_private.h" |
| 12 #include "content/public/renderer/pepper_plugin_instance.h" | 11 #include "content/public/renderer/pepper_plugin_instance.h" |
| 13 #include "ppapi/shared_impl/ppapi_globals.h" | 12 #include "ppapi/shared_impl/ppapi_globals.h" |
| 14 #include "third_party/WebKit/public/platform/WebString.h" | 13 #include "third_party/WebKit/public/platform/WebString.h" |
| 15 #include "third_party/WebKit/public/web/WebDOMResourceProgressEvent.h" | 14 #include "third_party/WebKit/public/web/WebDOMResourceProgressEvent.h" |
| 16 #include "third_party/WebKit/public/web/WebDocument.h" | 15 #include "third_party/WebKit/public/web/WebDocument.h" |
| 17 #include "third_party/WebKit/public/web/WebElement.h" | 16 #include "third_party/WebKit/public/web/WebElement.h" |
| 18 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 17 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 19 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 18 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
| 20 #include "v8/include/v8.h" | 19 #include "v8/include/v8.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 87 |
| 89 } // namespace | 88 } // namespace |
| 90 | 89 |
| 91 void DispatchProgressEvent(PP_Instance instance, const ProgressEvent &event) { | 90 void DispatchProgressEvent(PP_Instance instance, const ProgressEvent &event) { |
| 92 ppapi::PpapiGlobals::Get()->GetMainThreadMessageLoop()->PostTask( | 91 ppapi::PpapiGlobals::Get()->GetMainThreadMessageLoop()->PostTask( |
| 93 FROM_HERE, | 92 FROM_HERE, |
| 94 base::Bind(&DispatchProgressEventOnMainThread, instance, event)); | 93 base::Bind(&DispatchProgressEventOnMainThread, instance, event)); |
| 95 } | 94 } |
| 96 | 95 |
| 97 } // namespace nacl | 96 } // namespace nacl |
| OLD | NEW |