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

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

Issue 181113009: Revert 253010 "Revert 251563 "Move browser initiated navigation ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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
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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/id_map.h" 13 #include "base/id_map.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/process/process_handle.h" 16 #include "base/process/process_handle.h"
17 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
18 #include "content/public/renderer/render_frame.h" 18 #include "content/public/renderer/render_frame.h"
19 #include "content/renderer/renderer_webcookiejar_impl.h" 19 #include "content/renderer/renderer_webcookiejar_impl.h"
20 #include "ipc/ipc_message.h" 20 #include "ipc/ipc_message.h"
21 #include "third_party/WebKit/public/web/WebDataSource.h" 21 #include "third_party/WebKit/public/web/WebDataSource.h"
22 #include "third_party/WebKit/public/web/WebFrameClient.h" 22 #include "third_party/WebKit/public/web/WebFrameClient.h"
23 23
24 class TransportDIB; 24 class TransportDIB;
25 struct FrameMsg_BuffersSwapped_Params; 25 struct FrameMsg_BuffersSwapped_Params;
26 struct FrameMsg_CompositorFrameSwapped_Params; 26 struct FrameMsg_CompositorFrameSwapped_Params;
27 struct FrameMsg_Navigate_Params;
27 28
28 namespace blink { 29 namespace blink {
29 class WebInputEvent; 30 class WebInputEvent;
30 class WebMouseEvent; 31 class WebMouseEvent;
31 struct WebCompositionUnderline; 32 struct WebCompositionUnderline;
32 struct WebContextMenuData; 33 struct WebContextMenuData;
33 struct WebCursorInfo; 34 struct WebCursorInfo;
34 } 35 }
35 36
36 namespace gfx { 37 namespace gfx {
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 virtual bool allowWebGL(blink::WebFrame* frame, bool default_value); 323 virtual bool allowWebGL(blink::WebFrame* frame, bool default_value);
323 virtual void didLoseWebGLContext(blink::WebFrame* frame, 324 virtual void didLoseWebGLContext(blink::WebFrame* frame,
324 int arb_robustness_status_code); 325 int arb_robustness_status_code);
325 virtual void forwardInputEvent(const blink::WebInputEvent* event); 326 virtual void forwardInputEvent(const blink::WebInputEvent* event);
326 virtual void initializeChildFrame(const blink::WebRect& frame_rect, 327 virtual void initializeChildFrame(const blink::WebRect& frame_rect,
327 float scale_factor); 328 float scale_factor);
328 329
329 // TODO(jam): move this to WebFrameClient 330 // TODO(jam): move this to WebFrameClient
330 virtual void showContextMenu(const blink::WebContextMenuData& data); 331 virtual void showContextMenu(const blink::WebContextMenuData& data);
331 332
333 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move
334 // this back to private member.
335 void OnNavigate(const FrameMsg_Navigate_Params& params);
336
332 protected: 337 protected:
333 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id); 338 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id);
334 339
335 private: 340 private:
336 friend class RenderFrameObserver; 341 friend class RenderFrameObserver;
337 FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest, 342 FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest,
338 ShouldUpdateSelectionTextFromContextMenuParams); 343 ShouldUpdateSelectionTextFromContextMenuParams);
339 344
340 typedef std::map<GURL, double> HostZoomLevels; 345 typedef std::map<GURL, double> HostZoomLevels;
341 346
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 // always respond properly to the request, so we don't have to worry so 404 // always respond properly to the request, so we don't have to worry so
400 // much about leaks. 405 // much about leaks.
401 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; 406 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_;
402 407
403 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 408 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
404 }; 409 };
405 410
406 } // namespace content 411 } // namespace content
407 412
408 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 413 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « trunk/src/content/renderer/notification_provider.cc ('k') | trunk/src/content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698