| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/plugins/npapi/plugin_instance.h" | 5 #include "webkit/plugins/npapi/plugin_instance.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 342 |
| 343 bool PluginInstance::NPP_Print(NPPrint* platform_print) { | 343 bool PluginInstance::NPP_Print(NPPrint* platform_print) { |
| 344 DCHECK(npp_functions_ != 0); | 344 DCHECK(npp_functions_ != 0); |
| 345 if (npp_functions_->print != 0) { | 345 if (npp_functions_->print != 0) { |
| 346 npp_functions_->print(npp_, platform_print); | 346 npp_functions_->print(npp_, platform_print); |
| 347 return true; | 347 return true; |
| 348 } | 348 } |
| 349 return false; | 349 return false; |
| 350 } | 350 } |
| 351 | 351 |
| 352 NPError PluginInstance::NPP_ClearSiteData(uint64 flags, | |
| 353 const char* domain, | |
| 354 uint64 max_age) { | |
| 355 DCHECK(npp_functions_ != 0); | |
| 356 // TODO(bauerb): Call NPAPI function when it is defined in the header. | |
| 357 return NPERR_NO_ERROR; | |
| 358 } | |
| 359 | |
| 360 void PluginInstance::NPP_URLRedirectNotify(const char* url, int32_t status, | 352 void PluginInstance::NPP_URLRedirectNotify(const char* url, int32_t status, |
| 361 void* notify_data) { | 353 void* notify_data) { |
| 362 DCHECK(npp_functions_ != 0); | 354 DCHECK(npp_functions_ != 0); |
| 363 if (npp_functions_->urlredirectnotify != 0) { | 355 if (npp_functions_->urlredirectnotify != 0) { |
| 364 npp_functions_->urlredirectnotify(npp_, url, status, notify_data); | 356 npp_functions_->urlredirectnotify(npp_, url, status, notify_data); |
| 365 } | 357 } |
| 366 } | 358 } |
| 367 | 359 |
| 368 void PluginInstance::SendJavaScriptStream(const GURL& url, | 360 void PluginInstance::SendJavaScriptStream(const GURL& url, |
| 369 const std::string& result, | 361 const std::string& result, |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 plugin_stream->UpdateUrl( | 664 plugin_stream->UpdateUrl( |
| 673 plugin_stream->pending_redirect_url().c_str()); | 665 plugin_stream->pending_redirect_url().c_str()); |
| 674 } | 666 } |
| 675 break; | 667 break; |
| 676 } | 668 } |
| 677 } | 669 } |
| 678 } | 670 } |
| 679 | 671 |
| 680 } // namespace npapi | 672 } // namespace npapi |
| 681 } // namespace webkit | 673 } // namespace webkit |
| OLD | NEW |