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

Side by Side Diff: content/renderer/render_process.h

Issue 10830072: Browser Plugin: New Implementation (Renderer Side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added lots more comments to messages and public members of BrowserPlugin Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDER_PROCESS_H_ 5 #ifndef CONTENT_RENDERER_RENDER_PROCESS_H_
6 #define CONTENT_RENDERER_RENDER_PROCESS_H_ 6 #define CONTENT_RENDERER_RENDER_PROCESS_H_
7 7
8 #include "content/common/child_process.h" 8 #include "content/common/child_process.h"
9 #include "skia/ext/platform_canvas.h" 9 #include "skia/ext/platform_canvas.h"
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Returns true if plugisn should be loaded in-process. 47 // Returns true if plugisn should be loaded in-process.
48 virtual bool UseInProcessPlugins() const = 0; 48 virtual bool UseInProcessPlugins() const = 0;
49 49
50 // Keep track of the cumulative set of enabled bindings for this process, 50 // Keep track of the cumulative set of enabled bindings for this process,
51 // across any view. 51 // across any view.
52 virtual void AddBindings(int bindings) = 0; 52 virtual void AddBindings(int bindings) = 0;
53 53
54 // The cumulative set of enabled bindings for this process. 54 // The cumulative set of enabled bindings for this process.
55 virtual int GetEnabledBindings() const = 0; 55 virtual int GetEnabledBindings() const = 0;
56 56
57 // Create a new transport DIB of, at least, the given size. Return NULL on
58 // error.
59 virtual TransportDIB* CreateTransportDIB(size_t size) = 0;
60 virtual void FreeTransportDIB(TransportDIB*) = 0;
61
57 // Returns a pointer to the RenderProcess singleton instance. Assuming that 62 // Returns a pointer to the RenderProcess singleton instance. Assuming that
58 // we're actually a renderer or a renderer test, this static cast will 63 // we're actually a renderer or a renderer test, this static cast will
59 // be correct. 64 // be correct.
60 static RenderProcess* current() { 65 static RenderProcess* current() {
61 return static_cast<RenderProcess*>(ChildProcess::current()); 66 return static_cast<RenderProcess*>(ChildProcess::current());
62 } 67 }
63 68
64 private: 69 private:
65 DISALLOW_COPY_AND_ASSIGN(RenderProcess); 70 DISALLOW_COPY_AND_ASSIGN(RenderProcess);
66 }; 71 };
67 72
68 #endif // CONTENT_RENDERER_RENDER_PROCESS_H_ 73 #endif // CONTENT_RENDERER_RENDER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698