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

Side by Side Diff: webkit/glue/plugins/plugin_instance.cc

Issue 4832002: Add PluginDataRemover. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: foo Created 10 years, 1 month 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 | « webkit/glue/plugins/plugin_instance.h ('k') | no next file » | 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) 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "webkit/glue/plugins/plugin_instance.h" 7 #include "webkit/glue/plugins/plugin_instance.h"
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 bool PluginInstance::NPP_Print(NPPrint* platform_print) { 336 bool PluginInstance::NPP_Print(NPPrint* platform_print) {
337 DCHECK(npp_functions_ != 0); 337 DCHECK(npp_functions_ != 0);
338 if (npp_functions_->print != 0) { 338 if (npp_functions_->print != 0) {
339 npp_functions_->print(npp_, platform_print); 339 npp_functions_->print(npp_, platform_print);
340 return true; 340 return true;
341 } 341 }
342 return false; 342 return false;
343 } 343 }
344 344
345 NPError PluginInstance::NPP_ClearSiteData(uint64 flags,
346 const char* domain,
347 uint64 max_age) {
348 DCHECK(npp_functions_ != 0);
349 // TODO(bauerb): Call NPAPI function when it is defined in the header.
350 return NPERR_NO_ERROR;
351 }
352
345 void PluginInstance::SendJavaScriptStream(const GURL& url, 353 void PluginInstance::SendJavaScriptStream(const GURL& url,
346 const std::string& result, 354 const std::string& result,
347 bool success, 355 bool success,
348 int notify_id) { 356 int notify_id) {
349 bool notify; 357 bool notify;
350 void* notify_data; 358 void* notify_data;
351 GetNotifyData(notify_id, &notify, &notify_data); 359 GetNotifyData(notify_id, &notify, &notify_data);
352 360
353 if (success) { 361 if (success) {
354 PluginStringStream *stream = 362 PluginStringStream *stream =
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 *notify = true; 636 *notify = true;
629 *notify_data = iter->second; 637 *notify_data = iter->second;
630 pending_requests_.erase(iter); 638 pending_requests_.erase(iter);
631 } else { 639 } else {
632 *notify = false; 640 *notify = false;
633 *notify_data = NULL; 641 *notify_data = NULL;
634 } 642 }
635 } 643 }
636 644
637 } // namespace NPAPI 645 } // namespace NPAPI
OLDNEW
« no previous file with comments | « webkit/glue/plugins/plugin_instance.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698