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

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

Issue 2167513003: Moves FrameHostMsg_SetCookie to a Mojo message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browser-associated-interface
Patch Set: . Created 4 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
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/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
17 #include "base/id_map.h" 17 #include "base/id_map.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/linked_ptr.h" 19 #include "base/memory/linked_ptr.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/memory/weak_ptr.h" 21 #include "base/memory/weak_ptr.h"
22 #include "base/observer_list.h" 22 #include "base/observer_list.h"
23 #include "base/process/process_handle.h" 23 #include "base/process/process_handle.h"
24 #include "build/build_config.h" 24 #include "build/build_config.h"
25 #include "content/common/accessibility_mode_enums.h" 25 #include "content/common/accessibility_mode_enums.h"
26 #include "content/common/frame.mojom.h" 26 #include "content/common/frame.mojom.h"
27 #include "content/common/frame_message_enums.h" 27 #include "content/common/frame_message_enums.h"
28 #include "content/common/render_frame_message_filter.mojom.h"
28 #include "content/public/common/console_message_level.h" 29 #include "content/public/common/console_message_level.h"
29 #include "content/public/common/javascript_message_type.h" 30 #include "content/public/common/javascript_message_type.h"
30 #include "content/public/common/referrer.h" 31 #include "content/public/common/referrer.h"
31 #include "content/public/common/stop_find_action.h" 32 #include "content/public/common/stop_find_action.h"
32 #include "content/public/renderer/render_frame.h" 33 #include "content/public/renderer/render_frame.h"
33 #include "content/renderer/frame_blame_context.h" 34 #include "content/renderer/frame_blame_context.h"
34 #include "content/renderer/mojo/blink_service_registry_impl.h" 35 #include "content/renderer/mojo/blink_service_registry_impl.h"
35 #include "content/renderer/renderer_webcookiejar_impl.h" 36 #include "content/renderer/renderer_webcookiejar_impl.h"
36 #include "ipc/ipc_message.h" 37 #include "ipc/ipc_message.h"
37 #include "ipc/ipc_platform_file.h" 38 #include "ipc/ipc_platform_file.h"
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 #endif // defined(ENABLE_PLUGINS) 371 #endif // defined(ENABLE_PLUGINS)
371 372
372 // May return NULL in some cases, especially if userMediaClient() returns 373 // May return NULL in some cases, especially if userMediaClient() returns
373 // NULL. 374 // NULL.
374 MediaStreamDispatcher* GetMediaStreamDispatcher(); 375 MediaStreamDispatcher* GetMediaStreamDispatcher();
375 376
376 #if defined(USE_EXTERNAL_POPUP_MENU) 377 #if defined(USE_EXTERNAL_POPUP_MENU)
377 void DidHideExternalPopupMenu(); 378 void DidHideExternalPopupMenu();
378 #endif 379 #endif
379 380
381 // Exposes the mojom::RenderFrameMessageFilter interface connected to the
382 // browser.
383 mojom::RenderFrameMessageFilter* render_frame_message_filter();
384
380 // IPC::Sender 385 // IPC::Sender
381 bool Send(IPC::Message* msg) override; 386 bool Send(IPC::Message* msg) override;
382 387
383 // IPC::Listener 388 // IPC::Listener
384 bool OnMessageReceived(const IPC::Message& msg) override; 389 bool OnMessageReceived(const IPC::Message& msg) override;
385 390
386 // RenderFrame implementation: 391 // RenderFrame implementation:
387 RenderView* GetRenderView() override; 392 RenderView* GetRenderView() override;
388 RenderAccessibility* GetRenderAccessibility() override; 393 RenderAccessibility* GetRenderAccessibility() override;
389 int GetRoutingID() override; 394 int GetRoutingID() override;
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 // The plugin instance that received the last mouse event. It is set to NULL 1278 // The plugin instance that received the last mouse event. It is set to NULL
1274 // if the last mouse event went to elements other than Pepper plugins. 1279 // if the last mouse event went to elements other than Pepper plugins.
1275 // |pepper_last_mouse_event_target_| is not owned by this class. We depend on 1280 // |pepper_last_mouse_event_target_| is not owned by this class. We depend on
1276 // the RenderFrameImpl to NULL it out when it destructs. 1281 // the RenderFrameImpl to NULL it out when it destructs.
1277 PepperPluginInstanceImpl* pepper_last_mouse_event_target_; 1282 PepperPluginInstanceImpl* pepper_last_mouse_event_target_;
1278 #endif 1283 #endif
1279 1284
1280 mojo::Binding<mojom::Frame> frame_binding_; 1285 mojo::Binding<mojom::Frame> frame_binding_;
1281 mojom::FrameHostPtr frame_host_; 1286 mojom::FrameHostPtr frame_host_;
1282 1287
1288 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_;
1289
1283 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1290 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1284 1291
1285 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1292 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1286 }; 1293 };
1287 1294
1288 } // namespace content 1295 } // namespace content
1289 1296
1290 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1297 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698