| OLD | NEW |
| 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 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/common/child_process.h" | 9 #include "content/common/child_process.h" |
| 10 #include "skia/ext/platform_canvas.h" | 10 #include "skia/ext/platform_canvas.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 virtual skia::PlatformCanvas* GetDrawingCanvas(TransportDIB** memory, | 41 virtual skia::PlatformCanvas* GetDrawingCanvas(TransportDIB** memory, |
| 42 const gfx::Rect& rect) = 0; | 42 const gfx::Rect& rect) = 0; |
| 43 | 43 |
| 44 // Frees shared memory allocated by AllocSharedMemory. You should only use | 44 // Frees shared memory allocated by AllocSharedMemory. You should only use |
| 45 // this function to free the SharedMemory object. | 45 // this function to free the SharedMemory object. |
| 46 virtual void ReleaseTransportDIB(TransportDIB* memory) = 0; | 46 virtual void ReleaseTransportDIB(TransportDIB* memory) = 0; |
| 47 | 47 |
| 48 // Returns true if plugisn should be loaded in-process. | 48 // Returns true if plugisn should be loaded in-process. |
| 49 virtual bool UseInProcessPlugins() const = 0; | 49 virtual bool UseInProcessPlugins() const = 0; |
| 50 | 50 |
| 51 virtual bool HasInitializedMediaLibrary() const = 0; | |
| 52 | |
| 53 // Returns a pointer to the RenderProcess singleton instance. Assuming that | 51 // Returns a pointer to the RenderProcess singleton instance. Assuming that |
| 54 // we're actually a renderer or a renderer test, this static cast will | 52 // we're actually a renderer or a renderer test, this static cast will |
| 55 // be correct. | 53 // be correct. |
| 56 static RenderProcess* current() { | 54 static RenderProcess* current() { |
| 57 return static_cast<RenderProcess*>(ChildProcess::current()); | 55 return static_cast<RenderProcess*>(ChildProcess::current()); |
| 58 } | 56 } |
| 59 | 57 |
| 60 private: | 58 private: |
| 61 DISALLOW_COPY_AND_ASSIGN(RenderProcess); | 59 DISALLOW_COPY_AND_ASSIGN(RenderProcess); |
| 62 }; | 60 }; |
| 63 | 61 |
| 64 #endif // CONTENT_RENDERER_RENDER_PROCESS_H_ | 62 #endif // CONTENT_RENDERER_RENDER_PROCESS_H_ |
| OLD | NEW |