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

Side by Side Diff: content/renderer/render_process_impl.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/render_process.h ('k') | content/renderer/render_process_impl.cc » ('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_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/timer.h" 9 #include "base/timer.h"
10 #include "content/renderer/render_process.h" 10 #include "content/renderer/render_process.h"
11 #include "native_client/src/shared/imc/nacl_imc.h" 11 #include "native_client/src/shared/imc/nacl_imc.h"
12 12
13 namespace skia { 13 namespace skia {
14 class PlatformCanvas; 14 class PlatformCanvas;
15 } 15 }
16 16
17 // Implementation of the RenderProcess interface for the regular browser. 17 // Implementation of the RenderProcess interface for the regular browser.
18 // See also MockRenderProcess which implements the active "RenderProcess" when 18 // See also MockRenderProcess which implements the active "RenderProcess" when
19 // running under certain unit tests. 19 // running under certain unit tests.
20 class RenderProcessImpl : public RenderProcess { 20 class RenderProcessImpl : public RenderProcess {
21 public: 21 public:
22 RenderProcessImpl(); 22 RenderProcessImpl();
23 virtual ~RenderProcessImpl(); 23 virtual ~RenderProcessImpl();
24 24
25 // RenderProcess implementation. 25 // RenderProcess implementation.
26 virtual skia::PlatformCanvas* GetDrawingCanvas(TransportDIB** memory, 26 virtual skia::PlatformCanvas* GetDrawingCanvas(TransportDIB** memory,
27 const gfx::Rect& rect); 27 const gfx::Rect& rect);
28 virtual void ReleaseTransportDIB(TransportDIB* memory); 28 virtual void ReleaseTransportDIB(TransportDIB* memory);
29 virtual bool UseInProcessPlugins() const; 29 virtual bool UseInProcessPlugins() const;
30 virtual bool HasInitializedMediaLibrary() const;
31 30
32 // Like UseInProcessPlugins(), but called before RenderProcess is created 31 // Like UseInProcessPlugins(), but called before RenderProcess is created
33 // and does not allow overriding by tests. This just checks the command line 32 // and does not allow overriding by tests. This just checks the command line
34 // each time. 33 // each time.
35 static bool InProcessPlugins(); 34 static bool InProcessPlugins();
36 35
37 private: 36 private:
38 // Look in the shared memory cache for a suitable object to reuse. 37 // Look in the shared memory cache for a suitable object to reuse.
39 // result: (output) the memory found 38 // result: (output) the memory found
40 // size: the resulting memory will be >= this size, in bytes 39 // size: the resulting memory will be >= this size, in bytes
(...skipping 26 matching lines...) Expand all
67 66
68 // TransportDIB sequence number 67 // TransportDIB sequence number
69 uint32 transport_dib_next_sequence_number_; 68 uint32 transport_dib_next_sequence_number_;
70 69
71 bool in_process_plugins_; 70 bool in_process_plugins_;
72 71
73 DISALLOW_COPY_AND_ASSIGN(RenderProcessImpl); 72 DISALLOW_COPY_AND_ASSIGN(RenderProcessImpl);
74 }; 73 };
75 74
76 #endif // CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_ 75 #endif // CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_process.h ('k') | content/renderer/render_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698