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

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

Issue 7709020: Moving the ViewHostMsg_PDFHasUnsupportedFeature IPC message to Chrome as PDF is a chrome specific (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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') | 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) 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_old.h" 10 #include "base/callback_old.h"
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // this will return an empty string. 411 // this will return an empty string.
412 virtual std::string ResolveProxy(const GURL& url) = 0; 412 virtual std::string ResolveProxy(const GURL& url) = 0;
413 413
414 // Tell the browser when resource loading starts/ends. 414 // Tell the browser when resource loading starts/ends.
415 virtual void DidStartLoading() = 0; 415 virtual void DidStartLoading() = 0;
416 virtual void DidStopLoading() = 0; 416 virtual void DidStopLoading() = 0;
417 417
418 // Sets restrictions on how the content can be used (i.e. no print/copy). 418 // Sets restrictions on how the content can be used (i.e. no print/copy).
419 virtual void SetContentRestriction(int restrictions) = 0; 419 virtual void SetContentRestriction(int restrictions) = 0;
420 420
421 // Tells the browser that the PDF has an unsupported feature.
422 virtual void HasUnsupportedFeature() = 0;
423
424 // Tells the browser to bring up SaveAs dialog to save specified URL. 421 // Tells the browser to bring up SaveAs dialog to save specified URL.
425 virtual void SaveURLAs(const GURL& url) = 0; 422 virtual void SaveURLAs(const GURL& url) = 0;
426 423
427 // Socket dispatcher for P2P connections. Returns to NULL if P2P API 424 // Socket dispatcher for P2P connections. Returns to NULL if P2P API
428 // is disabled. 425 // is disabled.
429 // 426 //
430 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting 427 // TODO(sergeyu): Stop using GetP2PSocketDispatcher() in remoting
431 // client and remove it from here. 428 // client and remove it from here.
432 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; 429 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0;
433 430
(...skipping 11 matching lines...) Expand all
445 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; 442 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0;
446 443
447 // Returns the current preferences. 444 // Returns the current preferences.
448 virtual ::ppapi::Preferences GetPreferences() = 0; 445 virtual ::ppapi::Preferences GetPreferences() = 0;
449 }; 446 };
450 447
451 } // namespace ppapi 448 } // namespace ppapi
452 } // namespace webkit 449 } // namespace webkit
453 450
454 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 451 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698