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

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

Issue 111613005: Start removing support for in-process NPAPI plugins. This was a debugging mode and was only support… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 6 years, 11 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 | « content/renderer/npapi/webplugin_impl.cc ('k') | content/renderer/render_process_impl.h » ('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) 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/child/child_process.h" 8 #include "content/child/child_process.h"
9 #include "skia/ext/platform_canvas.h" 9 #include "skia/ext/platform_canvas.h"
10 10
(...skipping 24 matching lines...) Expand all
35 // 35 //
36 // When no longer needed, you should pass the TransportDIB to 36 // When no longer needed, you should pass the TransportDIB to
37 // ReleaseTransportDIB so that it can be recycled. 37 // ReleaseTransportDIB so that it can be recycled.
38 virtual SkCanvas* GetDrawingCanvas(TransportDIB** memory, 38 virtual SkCanvas* GetDrawingCanvas(TransportDIB** memory,
39 const gfx::Rect& rect) = 0; 39 const gfx::Rect& rect) = 0;
40 40
41 // Frees shared memory allocated by AllocSharedMemory. You should only use 41 // Frees shared memory allocated by AllocSharedMemory. You should only use
42 // this function to free the SharedMemory object. 42 // this function to free the SharedMemory object.
43 virtual void ReleaseTransportDIB(TransportDIB* memory) = 0; 43 virtual void ReleaseTransportDIB(TransportDIB* memory) = 0;
44 44
45 // Returns true if plugisn should be loaded in-process.
46 virtual bool UseInProcessPlugins() const = 0;
47
48 // Keep track of the cumulative set of enabled bindings for this process, 45 // Keep track of the cumulative set of enabled bindings for this process,
49 // across any view. 46 // across any view.
50 virtual void AddBindings(int bindings) = 0; 47 virtual void AddBindings(int bindings) = 0;
51 48
52 // The cumulative set of enabled bindings for this process. 49 // The cumulative set of enabled bindings for this process.
53 virtual int GetEnabledBindings() const = 0; 50 virtual int GetEnabledBindings() const = 0;
54 51
55 // Create a new transport DIB of, at least, the given size. Return NULL on 52 // Create a new transport DIB of, at least, the given size. Return NULL on
56 // error. 53 // error.
57 virtual TransportDIB* CreateTransportDIB(size_t size) = 0; 54 virtual TransportDIB* CreateTransportDIB(size_t size) = 0;
58 virtual void FreeTransportDIB(TransportDIB*) = 0; 55 virtual void FreeTransportDIB(TransportDIB*) = 0;
59 56
60 // Returns a pointer to the RenderProcess singleton instance. Assuming that 57 // Returns a pointer to the RenderProcess singleton instance. Assuming that
61 // we're actually a renderer or a renderer test, this static cast will 58 // we're actually a renderer or a renderer test, this static cast will
62 // be correct. 59 // be correct.
63 static RenderProcess* current() { 60 static RenderProcess* current() {
64 return static_cast<RenderProcess*>(ChildProcess::current()); 61 return static_cast<RenderProcess*>(ChildProcess::current());
65 } 62 }
66 63
67 private: 64 private:
68 DISALLOW_COPY_AND_ASSIGN(RenderProcess); 65 DISALLOW_COPY_AND_ASSIGN(RenderProcess);
69 }; 66 };
70 67
71 } // namespace content 68 } // namespace content
72 69
73 #endif // CONTENT_RENDERER_RENDER_PROCESS_H_ 70 #endif // CONTENT_RENDERER_RENDER_PROCESS_H_
OLDNEW
« no previous file with comments | « content/renderer/npapi/webplugin_impl.cc ('k') | content/renderer/render_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698