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

Side by Side Diff: webkit/glue/plugins/pepper_plugin_delegate.h

Issue 5685002: Make it possible to write simple unit tests for the pepper implementation. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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
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 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 const FilePath& path, 274 const FilePath& path,
275 base::PlatformFileInfo* info) = 0; 275 base::PlatformFileInfo* info) = 0;
276 virtual base::PlatformFileError GetModuleLocalDirContents( 276 virtual base::PlatformFileError GetModuleLocalDirContents(
277 const std::string& module_name, 277 const std::string& module_name,
278 const FilePath& path, 278 const FilePath& path,
279 PepperDirContents* contents) = 0; 279 PepperDirContents* contents) = 0;
280 280
281 // Returns a MessageLoopProxy instance associated with the message loop 281 // Returns a MessageLoopProxy instance associated with the message loop
282 // of the file thread in this renderer. 282 // of the file thread in this renderer.
283 virtual scoped_refptr<base::MessageLoopProxy> 283 virtual scoped_refptr<base::MessageLoopProxy>
284 GetFileThreadMessageLoopProxy() = 0; 284 GetFileThreadMessageLoopProxy() = 0;
285 285
286 // Create a fullscreen container for a plugin instance. This effectively 286 // Create a fullscreen container for a plugin instance. This effectively
287 // switches the plugin to fullscreen. 287 // switches the plugin to fullscreen.
288 virtual FullscreenContainer* CreateFullscreenContainer( 288 virtual FullscreenContainer* CreateFullscreenContainer(
289 PluginInstance* instance) = 0; 289 PluginInstance* instance) = 0;
290 290
291 // Returns a string with the name of the default 8-bit char encoding. 291 // Returns a string with the name of the default 8-bit char encoding.
292 virtual std::string GetDefaultEncoding() = 0; 292 virtual std::string GetDefaultEncoding() = 0;
293 293
294 // Sets the mininum and maximium zoom factors. 294 // Sets the mininum and maximium zoom factors.
295 virtual void ZoomLimitsChanged(double minimum_factor, 295 virtual void ZoomLimitsChanged(double minimum_factor,
296 double maximum_factor) = 0; 296 double maximum_factor) = 0;
297 297
298 // Retrieves the proxy information for the given URL in PAC format. On error, 298 // Retrieves the proxy information for the given URL in PAC format. On error,
299 // this will return an empty string. 299 // this will return an empty string.
300 virtual std::string ResolveProxy(const GURL& url) = 0; 300 virtual std::string ResolveProxy(const GURL& url) = 0;
301 301
302 // Tell the browser when resource loading starts/ends. 302 // Tell the browser when resource loading starts/ends.
303 virtual void DidStartLoading() = 0; 303 virtual void DidStartLoading() = 0;
304 virtual void DidStopLoading() = 0; 304 virtual void DidStopLoading() = 0;
305 305
306 // Sets restrictions on how the content can be used (i.e. no print/copy). 306 // Sets restrictions on how the content can be used (i.e. no print/copy).
307 virtual void SetContentRestriction(int restrictions) = 0; 307 virtual void SetContentRestriction(int restrictions) = 0;
308 }; 308 };
309 309
310 } // namespace pepper 310 } // namespace pepper
311 311
312 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ 312 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698