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

Side by Side Diff: content/browser/renderer_host/render_message_filter.h

Issue 2717213004: Move SharedBitmapManager implementation out of content/ (Closed)
Patch Set: rebase Created 3 years, 8 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
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_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_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 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/shared_memory.h" 17 #include "base/memory/shared_memory.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/sequenced_task_runner_helpers.h" 19 #include "base/sequenced_task_runner_helpers.h"
20 #include "base/strings/string16.h" 20 #include "base/strings/string16.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "cc/resources/shared_bitmap_manager.h" 22 #include "cc/resources/shared_bitmap_manager.h"
23 #include "components/display_compositor/host_shared_bitmap_manager.h"
23 #include "content/common/cache_storage/cache_storage_types.h" 24 #include "content/common/cache_storage/cache_storage_types.h"
24 #include "content/common/host_shared_bitmap_manager.h"
25 #include "content/common/render_message_filter.mojom.h" 25 #include "content/common/render_message_filter.mojom.h"
26 #include "content/public/browser/browser_associated_interface.h" 26 #include "content/public/browser/browser_associated_interface.h"
27 #include "content/public/browser/browser_message_filter.h" 27 #include "content/public/browser/browser_message_filter.h"
28 #include "gpu/config/gpu_info.h" 28 #include "gpu/config/gpu_info.h"
29 #include "ipc/message_filter.h" 29 #include "ipc/message_filter.h"
30 #include "third_party/WebKit/public/web/WebPopupType.h" 30 #include "third_party/WebKit/public/web/WebPopupType.h"
31 #include "ui/gfx/geometry/rect.h" 31 #include "ui/gfx/geometry/rect.h"
32 #include "ui/gfx/gpu_memory_buffer.h" 32 #include "ui/gfx/gpu_memory_buffer.h"
33 #include "ui/gfx/native_widget_types.h" 33 #include "ui/gfx/native_widget_types.h"
34 #include "ui/surface/transport_dib.h" 34 #include "ui/surface/transport_dib.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // mojom::RenderMessageFilter: 113 // mojom::RenderMessageFilter:
114 void GenerateRoutingID(const GenerateRoutingIDCallback& routing_id) override; 114 void GenerateRoutingID(const GenerateRoutingIDCallback& routing_id) override;
115 void CreateNewWindow(mojom::CreateNewWindowParamsPtr params, 115 void CreateNewWindow(mojom::CreateNewWindowParamsPtr params,
116 const CreateNewWindowCallback& callback) override; 116 const CreateNewWindowCallback& callback) override;
117 void CreateNewWidget(int32_t opener_id, 117 void CreateNewWidget(int32_t opener_id,
118 blink::WebPopupType popup_type, 118 blink::WebPopupType popup_type,
119 const CreateNewWidgetCallback& callback) override; 119 const CreateNewWidgetCallback& callback) override;
120 void CreateFullscreenWidget( 120 void CreateFullscreenWidget(
121 int opener_id, 121 int opener_id,
122 const CreateFullscreenWidgetCallback& callback) override; 122 const CreateFullscreenWidgetCallback& callback) override;
123 void AllocatedSharedBitmap(mojo::ScopedSharedBufferHandle buffer, 123 void GetSharedBitmapManager(
124 const cc::SharedBitmapId& id) override; 124 cc::mojom::SharedBitmapManagerAssociatedRequest request) override;
125 void DeletedSharedBitmap(const cc::SharedBitmapId& id) override;
126 125
127 // Message handlers called on the browser IO thread: 126 // Message handlers called on the browser IO thread:
128 void OnHasGpuProcess(IPC::Message* reply); 127 void OnHasGpuProcess(IPC::Message* reply);
129 // Helper callbacks for the message handlers. 128 // Helper callbacks for the message handlers.
130 void GetGpuProcessHandlesCallback( 129 void GetGpuProcessHandlesCallback(
131 std::unique_ptr<IPC::Message> reply, 130 std::unique_ptr<IPC::Message> reply,
132 const std::list<base::ProcessHandle>& handles); 131 const std::list<base::ProcessHandle>& handles);
133 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); 132 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg);
134 133
135 #if defined(OS_LINUX) 134 #if defined(OS_LINUX)
(...skipping 22 matching lines...) Expand all
158 void OnMediaLogEvents(const std::vector<media::MediaLogEvent>&); 157 void OnMediaLogEvents(const std::vector<media::MediaLogEvent>&);
159 158
160 bool CheckBenchmarkingEnabled() const; 159 bool CheckBenchmarkingEnabled() const;
161 bool CheckPreparsedJsCachingEnabled() const; 160 bool CheckPreparsedJsCachingEnabled() const;
162 161
163 // Cached resource request dispatcher host, guaranteed to be non-null. We do 162 // Cached resource request dispatcher host, guaranteed to be non-null. We do
164 // not own it; it is managed by the BrowserProcess, which has a wider scope 163 // not own it; it is managed by the BrowserProcess, which has a wider scope
165 // than we do. 164 // than we do.
166 ResourceDispatcherHostImpl* resource_dispatcher_host_; 165 ResourceDispatcherHostImpl* resource_dispatcher_host_;
167 166
168 HostSharedBitmapManagerClient bitmap_manager_client_; 167 display_compositor::HostSharedBitmapManagerClient bitmap_manager_client_;
169 168
170 // Contextual information to be used for requests created here. 169 // Contextual information to be used for requests created here.
171 scoped_refptr<net::URLRequestContextGetter> request_context_; 170 scoped_refptr<net::URLRequestContextGetter> request_context_;
172 171
173 // The ResourceContext which is to be used on the IO thread. 172 // The ResourceContext which is to be used on the IO thread.
174 ResourceContext* resource_context_; 173 ResourceContext* resource_context_;
175 174
176 scoped_refptr<RenderWidgetHelper> render_widget_helper_; 175 scoped_refptr<RenderWidgetHelper> render_widget_helper_;
177 176
178 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; 177 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_;
179 178
180 int render_process_id_; 179 int render_process_id_;
181 180
182 MediaInternals* media_internals_; 181 MediaInternals* media_internals_;
183 CacheStorageContextImpl* cache_storage_context_; 182 CacheStorageContextImpl* cache_storage_context_;
184 183
185 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_; 184 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_;
186 185
187 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); 186 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter);
188 }; 187 };
189 188
190 } // namespace content 189 } // namespace content
191 190
192 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 191 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698