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

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

Issue 7104144: Get rid of the following dependencies from content: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 9 years, 6 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/content_renderer_client.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) 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
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_
OLDNEW
« no previous file with comments | « content/renderer/content_renderer_client.cc ('k') | content/renderer/render_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698