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

Side by Side Diff: content/public/browser/render_process_host.h

Issue 2383933002: Added message filter receiving frames from compositor
Patch Set: Created 4 years, 2 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
« no previous file with comments | « content/public/browser/android/synchronous_compositor.h ('k') | no next file » | 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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <list> 11 #include <list>
12 12
13 #include "base/id_map.h" 13 #include "base/id_map.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "base/process/kill.h" 15 #include "base/process/kill.h"
16 #include "base/process/process_handle.h" 16 #include "base/process/process_handle.h"
17 #include "base/supports_user_data.h" 17 #include "base/supports_user_data.h"
18 #include "content/browser/android/synchronous_compositor_observer.h"
18 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
19 #include "ipc/ipc_channel_proxy.h" 20 #include "ipc/ipc_channel_proxy.h"
20 #include "ipc/ipc_sender.h" 21 #include "ipc/ipc_sender.h"
21 #include "ui/gfx/native_widget_types.h" 22 #include "ui/gfx/native_widget_types.h"
22 23
23 class GURL; 24 class GURL;
24 25
25 namespace base { 26 namespace base {
26 class SharedPersistentMemoryAllocator; 27 class SharedPersistentMemoryAllocator;
27 class TimeDelta; 28 class TimeDelta;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 this->exit_code = exit_code; 63 this->exit_code = exit_code;
63 } 64 }
64 base::TerminationStatus status; 65 base::TerminationStatus status;
65 int exit_code; 66 int exit_code;
66 }; 67 };
67 68
68 // General functions --------------------------------------------------------- 69 // General functions ---------------------------------------------------------
69 70
70 ~RenderProcessHost() override {} 71 ~RenderProcessHost() override {}
71 72
73 virtual SynchronousCompositorObserver* GetFilter() = 0;
74
72 // Initialize the new renderer process, returning true on success. This must 75 // Initialize the new renderer process, returning true on success. This must
73 // be called once before the object can be used, but can be called after 76 // be called once before the object can be used, but can be called after
74 // that with no effect. Therefore, if the caller isn't sure about whether 77 // that with no effect. Therefore, if the caller isn't sure about whether
75 // the process has been created, it should just call Init(). 78 // the process has been created, it should just call Init().
76 virtual bool Init() = 0; 79 virtual bool Init() = 0;
77 80
78 // Gets the next available routing id. 81 // Gets the next available routing id.
79 virtual int GetNextRoutingID() = 0; 82 virtual int GetNextRoutingID() = 0;
80 83
81 // These methods add or remove listener for a specific message routing ID. 84 // These methods add or remove listener for a specific message routing ID.
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 static void SetMaxRendererProcessCount(size_t count); 368 static void SetMaxRendererProcessCount(size_t count);
366 369
367 // Returns the current maximum number of renderer process hosts kept by the 370 // Returns the current maximum number of renderer process hosts kept by the
368 // content module. 371 // content module.
369 static size_t GetMaxRendererProcessCount(); 372 static size_t GetMaxRendererProcessCount();
370 }; 373 };
371 374
372 } // namespace content. 375 } // namespace content.
373 376
374 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 377 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/android/synchronous_compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698