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

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 6871020: Added functionality to use "SaveAs..." from PDF plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppb_pdf_impl.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // Tell the browser when resource loading starts/ends. 365 // Tell the browser when resource loading starts/ends.
366 virtual void DidStartLoading() = 0; 366 virtual void DidStartLoading() = 0;
367 virtual void DidStopLoading() = 0; 367 virtual void DidStopLoading() = 0;
368 368
369 // Sets restrictions on how the content can be used (i.e. no print/copy). 369 // Sets restrictions on how the content can be used (i.e. no print/copy).
370 virtual void SetContentRestriction(int restrictions) = 0; 370 virtual void SetContentRestriction(int restrictions) = 0;
371 371
372 // Tells the browser that the PDF has an unsupported feature. 372 // Tells the browser that the PDF has an unsupported feature.
373 virtual void HasUnsupportedFeature() = 0; 373 virtual void HasUnsupportedFeature() = 0;
374 374
375 // Tells the browser to bring up SaveAs dialog.
376 virtual void SaveAs() = 0;
377
375 // Socket dispatcher for P2P connections. Returns to NULL if P2P API 378 // Socket dispatcher for P2P connections. Returns to NULL if P2P API
376 // is disabled. 379 // is disabled.
377 // 380 //
378 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting 381 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting
379 // client and remove it from here. 382 // client and remove it from here.
380 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; 383 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0;
381 384
382 // Creates P2PTransport object. 385 // Creates P2PTransport object.
383 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; 386 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0;
384 }; 387 };
385 388
386 } // namespace ppapi 389 } // namespace ppapi
387 } // namespace webkit 390 } // namespace webkit
388 391
389 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 392 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppb_pdf_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698